Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Unified Diff: remoting/host/linux/x_server_clipboard.cc

Issue 824383002: replace COMPILE_ASSERT with static_assert in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/fake_desktop_capturer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/x_server_clipboard.cc
diff --git a/remoting/host/linux/x_server_clipboard.cc b/remoting/host/linux/x_server_clipboard.cc
index 1b70b2183a93bfe61cc8d35652461496dd395681..9e636ac3749eb1bd4c853bf3fc4e9999bb6304ed 100644
--- a/remoting/host/linux/x_server_clipboard.cc
+++ b/remoting/host/linux/x_server_clipboard.cc
@@ -76,7 +76,7 @@ void XServerClipboard::Init(Display* display,
targets_atom_ = atoms[3];
timestamp_atom_ = atoms[4];
utf8_string_atom_ = atoms[5];
- COMPILE_ASSERT(kNumAtomNames >= 6, kAtomNames_too_small);
+ static_assert(kNumAtomNames >= 6, "kAtomNames is too small");
} else {
LOG(ERROR) << "XInternAtoms failed";
}
« no previous file with comments | « remoting/host/fake_desktop_capturer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698