summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
commit5115474e2e2c773b53fc1e111426e8924deeadb7 (patch)
tree6bdd56cdd544a3b331db7612781ae347739c4e82 /base/gfx
parent609990b5b4254601504935427483e3fc22cfde80 (diff)
downloadchromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.zip
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.gz
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.bz2
Use %ls instead of %s in wprintf format strings for wchar_t fields.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/font_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gfx/font_utils.cc b/base/gfx/font_utils.cc
index 9ca1852..cf8fce4 100644
--- a/base/gfx/font_utils.cc
+++ b/base/gfx/font_utils.cc
@@ -295,7 +295,7 @@ bool GetDerivedFontData(const wchar_t *family,
// TODO(jungshik) : This comes up pretty high in the profile so that
// we need to measure whether using SHA256 (after coercing all the
// fields to char*) is faster than StringPrintf.
- std::wstring font_key = StringPrintf(L"%1d:%d:%s", style, logfont->lfHeight,
+ std::wstring font_key = StringPrintf(L"%1d:%d:%ls", style, logfont->lfHeight,
family);
FontDataCache::const_iterator iter = font_data_cache->find(font_key);
FontData *derived;