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

Unified Diff: Source/core/rendering/TextAutosizer.h

Issue 811843003: replace COMPILE_ASSERT with static_assert in core/rendering/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/core/rendering/RootInlineBox.cpp ('k') | Source/core/rendering/break_lines.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/TextAutosizer.h
diff --git a/Source/core/rendering/TextAutosizer.h b/Source/core/rendering/TextAutosizer.h
index 556b48655c872e401c93f2c779e52cb339120101..a3ca410b20c7fbec64edfd0537c677378a02769e 100644
--- a/Source/core/rendering/TextAutosizer.h
+++ b/Source/core/rendering/TextAutosizer.h
@@ -200,8 +200,8 @@ private:
float m_width;
};
// Ensures efficient hashing using StringHasher.
- COMPILE_ASSERT(!(sizeof(FingerprintSourceData) % sizeof(UChar)),
- Sizeof_FingerprintSourceData_must_be_multiple_of_UChar);
+ static_assert(!(sizeof(FingerprintSourceData) % sizeof(UChar)),
+ "sizeof(FingerprintSourceData) must be a multiple of UChar");
typedef unsigned Fingerprint;
typedef HashMap<Fingerprint, OwnPtr<Supercluster> > SuperclusterMap;
« no previous file with comments | « Source/core/rendering/RootInlineBox.cpp ('k') | Source/core/rendering/break_lines.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698