summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/wire_message.cc
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2014-12-22 13:14:46 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-22 21:15:32 +0000
commit470748ce474f8fce7a566eb570021273c88d04c0 (patch)
tree6955cf4690aa6dc87f4f84d99fcb0a665d2de5aa /components/proximity_auth/wire_message.cc
parentd054c43b09a963b2c138b8f7f4cb2c26a2056eb3 (diff)
downloadchromium_src-470748ce474f8fce7a566eb570021273c88d04c0.zip
chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.gz
chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.bz2
replace COMPILE_ASSERT with static_assert in components/
BUG=442514 Review URL: https://codereview.chromium.org/794683005 Cr-Commit-Position: refs/heads/master@{#309464}
Diffstat (limited to 'components/proximity_auth/wire_message.cc')
-rw-r--r--components/proximity_auth/wire_message.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/proximity_auth/wire_message.cc b/components/proximity_auth/wire_message.cc
index 604c026..5b64da9 100644
--- a/components/proximity_auth/wire_message.cc
+++ b/components/proximity_auth/wire_message.cc
@@ -41,7 +41,7 @@ bool ParseHeader(const std::string& serialized_message,
return false;
}
- COMPILE_ASSERT(kHeaderLength > 2, header_length_too_small);
+ static_assert(kHeaderLength > 2, "kHeaderLength too small");
size_t version = serialized_message[0];
if (version != kExpectedMessageFormatVersion) {
VLOG(1) << "Error: Invalid message version. Got " << version