summaryrefslogtreecommitdiff
path: root/core/src/fxcrt/fx_basic_bstring.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-19 14:26:46 -0800
committerLei Zhang <thestig@chromium.org>2016-02-19 14:26:46 -0800
commit11d33361e95d5ea61ee43e4261fa8f53aa372731 (patch)
treedf81483804ef757d6f3c6f91531e7deae1eebf42 /core/src/fxcrt/fx_basic_bstring.cpp
parent84e5a12f186a00bf37a26cc13965f65c25561bd1 (diff)
downloadpdfium-11d33361e95d5ea61ee43e4261fa8f53aa372731.tar.xz
Get rid of CFX_CharMap instantiations.
The only thing left are a couple of static methods. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1711273002 .
Diffstat (limited to 'core/src/fxcrt/fx_basic_bstring.cpp')
-rw-r--r--core/src/fxcrt/fx_basic_bstring.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/fxcrt/fx_basic_bstring.cpp b/core/src/fxcrt/fx_basic_bstring.cpp
index 85e5041095..af06f0074b 100644
--- a/core/src/fxcrt/fx_basic_bstring.cpp
+++ b/core/src/fxcrt/fx_basic_bstring.cpp
@@ -920,8 +920,7 @@ CFX_ByteString CFX_ByteString::FromUnicode(const FX_WCHAR* str,
// static
CFX_ByteString CFX_ByteString::FromUnicode(const CFX_WideString& str) {
- CFX_CharMap* pCharMap = CFX_CharMap::GetDefaultMapper();
- return (*pCharMap->m_GetByteString)(pCharMap, str);
+ return CFX_CharMap::GetByteString(0, str);
}
int CFX_ByteString::Compare(const CFX_ByteStringC& str) const {