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

Unified Diff: src/inspector/String16.h

Issue 2339173004: Revert of [inspector] fixed all shorten-64-to-32 warnings (Closed)
Patch Set: Created 4 years, 3 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 | « src/inspector/SearchUtil.cpp ('k') | src/inspector/String16.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/String16.h
diff --git a/src/inspector/String16.h b/src/inspector/String16.h
index 7fd367bb4d24b63f9d15835faee14188cace11b7..e342fe83398afb1e6d2d7d3683be6757b5d9e513 100644
--- a/src/inspector/String16.h
+++ b/src/inspector/String16.h
@@ -32,7 +32,6 @@
}
static String16 fromInteger(int);
- static String16 fromInteger(size_t);
static String16 fromDouble(double);
static String16 fromDoublePrecision3(double);
static String16 fromDoublePrecision6(double);
@@ -42,14 +41,14 @@
const UChar* characters16() const { return m_impl.c_str(); }
size_t length() const { return m_impl.length(); }
bool isEmpty() const { return !m_impl.length(); }
- UChar operator[](size_t index) const { return m_impl[index]; }
- String16 substring(size_t pos, size_t len = UINT_MAX) const {
+ UChar operator[](unsigned index) const { return m_impl[index]; }
+ String16 substring(unsigned pos, unsigned len = UINT_MAX) const {
return String16(m_impl.substr(pos, len));
}
- size_t find(const String16& str, size_t start = 0) const {
+ size_t find(const String16& str, unsigned start = 0) const {
return m_impl.find(str.m_impl, start);
}
- size_t reverseFind(const String16& str, size_t start = UINT_MAX) const {
+ size_t reverseFind(const String16& str, unsigned start = UINT_MAX) const {
return m_impl.rfind(str.m_impl, start);
}
void swap(String16& other) { m_impl.swap(other.m_impl); }
« no previous file with comments | « src/inspector/SearchUtil.cpp ('k') | src/inspector/String16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698