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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16WTF.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/String16WTF.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
index 19c56256f0dec481d1c3255351a1d19e9cee65c6..15292f003df1675717c1235f0ed610ef138e7698 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
@@ -50,7 +50,7 @@ public:
bool isEmpty() const { return m_impl.isEmpty(); }
UChar operator[](unsigned index) const { return m_impl[index]; }
- unsigned sizeInBytes() const { return m_impl.sizeInBytes(); }
+ size_t charactersSizeInBytes() const { return m_impl.charactersSizeInBytes(); }
const UChar* characters16() const { return m_impl.isEmpty() ? nullptr : m_impl.characters16(); }
static double charactersToDouble(const LChar* characters, size_t length, bool* ok = 0) { return ::charactersToDouble(characters, length, ok); }

Powered by Google App Engine
This is Rietveld 408576698