summaryrefslogtreecommitdiffstats
path: root/base/sys_string_conversions_win.cc
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 11:17:00 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 11:17:00 +0000
commit6c82baf4022e4b964b2729e28992b79b9c5db879 (patch)
treeedc29079826c2bb9735564ac0f16502f6845e1c3 /base/sys_string_conversions_win.cc
parentb24250fc9857d219ad617e2a14e145b65724cb61 (diff)
downloadchromium_src-6c82baf4022e4b964b2729e28992b79b9c5db879.zip
chromium_src-6c82baf4022e4b964b2729e28992b79b9c5db879.tar.gz
chromium_src-6c82baf4022e4b964b2729e28992b79b9c5db879.tar.bz2
Pass StringPieces by constant reference.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1085 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_string_conversions_win.cc')
-rw-r--r--base/sys_string_conversions_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/sys_string_conversions_win.cc b/base/sys_string_conversions_win.cc
index 48e8f01..95ab431 100644
--- a/base/sys_string_conversions_win.cc
+++ b/base/sys_string_conversions_win.cc
@@ -41,7 +41,7 @@ std::string SysWideToUTF8(const std::wstring& wide) {
}
// Do not assert in this function since it is used by the asssertion code!
-std::wstring SysUTF8ToWide(StringPiece utf8) {
+std::wstring SysUTF8ToWide(const StringPiece& utf8) {
return SysMultiByteToWide(utf8, CP_UTF8);
}
@@ -49,12 +49,12 @@ std::string SysWideToNativeMB(const std::wstring& wide) {
return SysWideToMultiByte(wide, CP_ACP);
}
-std::wstring SysNativeMBToWide(StringPiece native_mb) {
+std::wstring SysNativeMBToWide(const StringPiece& native_mb) {
return SysMultiByteToWide(native_mb, CP_ACP);
}
// Do not assert in this function since it is used by the asssertion code!
-std::wstring SysMultiByteToWide(StringPiece mb, uint32 code_page) {
+std::wstring SysMultiByteToWide(const StringPiece& mb, uint32 code_page) {
if (mb.empty())
return std::wstring();