Index: Source/wtf/text/AtomicString.h |
diff --git a/Source/wtf/text/AtomicString.h b/Source/wtf/text/AtomicString.h |
index 6ba49b7d141764590f7ff98768319844ac41636c..862bb3f7909105223e8b4faa3e96f2c2f166368b 100644 |
--- a/Source/wtf/text/AtomicString.h |
+++ b/Source/wtf/text/AtomicString.h |
@@ -65,8 +65,8 @@ public: |
ALWAYS_INLINE AtomicString(const char (&characters)[charactersCount], ConstructFromLiteralTag) |
: m_string(addFromLiteralData(characters, charactersCount - 1)) |
{ |
- COMPILE_ASSERT(charactersCount > 1, AtomicStringFromLiteralNotEmpty); |
- COMPILE_ASSERT((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl)) / sizeof(LChar))), AtomicStringFromLiteralCannotOverflow); |
+ static_assert(charactersCount > 1, "AtomicString FromLiteralData should not be empty"); |
+ static_assert((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl)) / sizeof(LChar))), "AtomicString FromLiteralData cannot overflow"); |
} |
// Hash table deleted values, which are only constructed and never copied or destroyed. |