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

Unified Diff: Source/wtf/text/WTFString.h

Issue 249363002: Use macros instead of specializing VectorTraits explicitly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | « Source/wtf/VectorTraits.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/WTFString.h
diff --git a/Source/wtf/text/WTFString.h b/Source/wtf/text/WTFString.h
index bf39ad20ef8fe685da931137b54d998a544ef4a1..c1098672a815a30ca765013d56b1aca2fa193ee6 100644
--- a/Source/wtf/text/WTFString.h
+++ b/Source/wtf/text/WTFString.h
@@ -664,10 +664,6 @@ template<> struct DefaultHash<String> {
typedef StringHash Hash;
};
-template <> struct VectorTraits<String> : SimpleClassVectorTraits<String> {
- static const bool canCompareWithMemcmp = false;
-};
-
// Shared global empty string.
WTF_EXPORT const String& emptyString();
@@ -679,6 +675,8 @@ WTF_EXPORT extern const String xmlnsWithColon;
} // namespace WTF
+WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(String);
+
using WTF::CString;
using WTF::KeepTrailingZeros;
using WTF::StrictUTF8Conversion;
« no previous file with comments | « Source/wtf/VectorTraits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698