summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 23:41:20 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 23:41:20 +0000
commit48617e8037bab377d4a30d9e415db7c1a3019564 (patch)
treeeb0161100be535faba602c9ef254947724363f42 /base
parent9c042debb5560cf0f8c7eaaaf65b09966ae06389 (diff)
downloadchromium_src-48617e8037bab377d4a30d9e415db7c1a3019564.zip
chromium_src-48617e8037bab377d4a30d9e415db7c1a3019564.tar.gz
chromium_src-48617e8037bab377d4a30d9e415db7c1a3019564.tar.bz2
Fix some more warnings.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/string_util.cc4
-rw-r--r--base/string_util.h4
2 files changed, 4 insertions, 4 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