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

Unified Diff: src/inspector/StringUtil.h

Issue 2332163002: [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
Index: src/inspector/StringUtil.h
diff --git a/src/inspector/StringUtil.h b/src/inspector/StringUtil.h
index 3a69454d95ee3d077275ba4a338ec66cac8a488b..ec75cd7dc170bb7650a94bbaa63bce3ed0c890ed 100644
--- a/src/inspector/StringUtil.h
+++ b/src/inspector/StringUtil.h
@@ -21,13 +21,16 @@ using StringBuilder = v8_inspector::String16Builder;
class StringUtil {
public:
- static String substring(const String& s, unsigned pos, unsigned len) {
+ static String substring(const String& s, size_t pos, size_t len) {
return s.substring(pos, len);
}
static String fromInteger(int number) { return String::fromInteger(number); }
+ static String fromInteger(size_t number) {
+ return String::fromInteger(number);
+ }
static String fromDouble(double number) { return String::fromDouble(number); }
static const size_t kNotFound = String::kNotFound;
- static void builderReserve(StringBuilder& builder, unsigned capacity) {
+ static void builderReserve(StringBuilder& builder, size_t capacity) {
builder.reserveCapacity(capacity);
}
};

Powered by Google App Engine
This is Rietveld 408576698