summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/string_util.cc4
-rw-r--r--base/string_util.h4
-rw-r--r--net/http/cert_status_cache.cc2
3 files changed, 5 insertions, 5 deletions
diff --git a/base/string_util.cc b/base/string_util.cc
index 0a930d9..cce635e 100644
--- a/base/string_util.cc
+++ b/base/string_util.cc
@@ -385,13 +385,13 @@ TrimPositions TrimStringT(const STR& input,
}
bool TrimString(const std::wstring& input,
- wchar_t trim_chars[],
+ const wchar_t trim_chars[],
std::wstring* output) {
return TrimStringT(input, trim_chars, TRIM_ALL, output) != TRIM_NONE;
}
bool TrimString(const std::string& input,
- char trim_chars[],
+ const char trim_chars[],
std::string* output) {
return TrimStringT(input, trim_chars, TRIM_ALL, output) != TRIM_NONE;
}
diff --git a/base/string_util.h b/base/string_util.h
index ca0496c..de09d58 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -150,10 +150,10 @@ extern const char* const kCodepageUTF8;
// Removes characters in trim_chars from the beginning and end of input.
// NOTE: Safe to use the same variable for both input and output.
bool TrimString(const std::wstring& input,
- wchar_t trim_chars[],
+ const wchar_t trim_chars[],
std::wstring* output);
bool TrimString(const std::string& input,
- char trim_chars[],
+ const char trim_chars[],
std::string* output);
// Trims any whitespace from either end of the input string. Returns where
diff --git a/net/http/cert_status_cache.cc b/net/http/cert_status_cache.cc
index 82741f7..f96baec 100644
--- a/net/http/cert_status_cache.cc
+++ b/net/http/cert_status_cache.cc
@@ -86,4 +86,4 @@ void CertStatusCache::SetCertStatus(const X509Certificate& cert,
}
}
-} \ No newline at end of file
+}