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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16STL.h

Issue 2232083002: Fix incorrect usage of StringImpl::sizeInBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: size_teeee Created 4 years, 4 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
Index: third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
index 4dd4369ebdd7888b927c871869553d9a4119b22d..9e6f41f3a2f7f34fac1159c25af7a57421248e73 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
@@ -39,7 +39,7 @@ public:
String16(const UChar* characters, size_t size) : m_impl(characters, size) { }
String16 isolatedCopy() const { return String16(m_impl); }
- unsigned sizeInBytes() const { return m_impl.size() * sizeof(UChar); }
+ size_t charactersSizeInBytes() const { return m_impl.size() * sizeof(UChar); }
const UChar* characters16() const { return m_impl.c_str(); }
std::string utf8() const;
static String16 fromUTF8(const char* stringStart, size_t length);

Powered by Google App Engine
This is Rietveld 408576698