diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 16:14:10 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 16:14:10 +0000 |
commit | a90d613ccaecfd877141ab7bdc746978fdf3b58e (patch) | |
tree | d13440db4bb37054ef4c4cdc2a211a9babcb1322 | |
parent | eb34392be36ea2948f39bd22a6beae19e0b0bd24 (diff) | |
download | chromium_src-a90d613ccaecfd877141ab7bdc746978fdf3b58e.zip chromium_src-a90d613ccaecfd877141ab7bdc746978fdf3b58e.tar.gz chromium_src-a90d613ccaecfd877141ab7bdc746978fdf3b58e.tar.bz2 |
Fix sys_strings_conversion_mac to use .data() rather than .c_str() now that
the input string is a StringPiece. This should be fine, as we pass a byte
count to CFStringCreateWithBytesNoCopy.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1033 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/sys_string_conversions_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/sys_string_conversions_mac.cc b/base/sys_string_conversions_mac.cc index 6614fa0..a719245 100644 --- a/base/sys_string_conversions_mac.cc +++ b/base/sys_string_conversions_mac.cc @@ -103,7 +103,7 @@ static OutStringType STLStringToSTLStringWithEncodingsT( scoped_cftyperef<CFStringRef> cfstring( CFStringCreateWithBytesNoCopy(NULL, - reinterpret_cast<const UInt8*>(in.c_str()), + reinterpret_cast<const UInt8*>(in.data()), in_length * sizeof(typename InStringType::value_type), in_encoding, |