From 6c82baf4022e4b964b2729e28992b79b9c5db879 Mon Sep 17 00:00:00 2001 From: "deanm@google.com" Date: Wed, 20 Aug 2008 11:17:00 +0000 Subject: Pass StringPieces by constant reference. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1085 0039d316-1c4b-4281-b951-d872f2087c98 --- base/sys_string_conversions_win.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/sys_string_conversions_win.cc') 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(); -- cgit v1.1