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

Unified Diff: src/inspector/StringUtil.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/String16.cpp ('k') | src/inspector/StringUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/StringUtil.h
diff --git a/src/inspector/StringUtil.h b/src/inspector/StringUtil.h
index ec75cd7dc170bb7650a94bbaa63bce3ed0c890ed..3a69454d95ee3d077275ba4a338ec66cac8a488b 100644
--- a/src/inspector/StringUtil.h
+++ b/src/inspector/StringUtil.h
@@ -21,16 +21,13 @@
class StringUtil {
public:
- static String substring(const String& s, size_t pos, size_t len) {
+ static String substring(const String& s, unsigned pos, unsigned 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, size_t capacity) {
+ static void builderReserve(StringBuilder& builder, unsigned capacity) {
builder.reserveCapacity(capacity);
}
};
« no previous file with comments | « src/inspector/String16.cpp ('k') | src/inspector/StringUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698