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

Unified Diff: src/inspector/string-16.h

Issue 2332163002: [inspector] fixed all shorten-64-to-32 warnings (Closed)
Patch Set: rebased 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/search-util.cc ('k') | src/inspector/string-16.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/string-16.h
diff --git a/src/inspector/string-16.h b/src/inspector/string-16.h
index e342fe83398afb1e6d2d7d3683be6757b5d9e513..7fd367bb4d24b63f9d15835faee14188cace11b7 100644
--- a/src/inspector/string-16.h
+++ b/src/inspector/string-16.h
@@ -32,6 +32,7 @@ class String16 {
}
static String16 fromInteger(int);
+ static String16 fromInteger(size_t);
static String16 fromDouble(double);
static String16 fromDoublePrecision3(double);
static String16 fromDoublePrecision6(double);
@@ -41,14 +42,14 @@ class String16 {
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[](unsigned index) const { return m_impl[index]; }
- String16 substring(unsigned pos, unsigned len = UINT_MAX) const {
+ UChar operator[](size_t index) const { return m_impl[index]; }
+ String16 substring(size_t pos, size_t len = UINT_MAX) const {
return String16(m_impl.substr(pos, len));
}
- size_t find(const String16& str, unsigned start = 0) const {
+ size_t find(const String16& str, size_t start = 0) const {
return m_impl.find(str.m_impl, start);
}
- size_t reverseFind(const String16& str, unsigned start = UINT_MAX) const {
+ size_t reverseFind(const String16& str, size_t 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/search-util.cc ('k') | src/inspector/string-16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698