diff options
author | tsepez <tsepez@chromium.org> | 2016-09-15 14:01:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-15 14:01:31 -0700 |
commit | d9871435eb7cea00a173baf780934f9d3525329a (patch) | |
tree | ec96dffc6e25865d6015f754b1a6406621c31bf4 /core/fxcrt/fx_basic_wstring.cpp | |
parent | 0a17fafd723e8684d1deb4b5ceea58967a0154da (diff) | |
download | pdfium-d9871435eb7cea00a173baf780934f9d3525329a.tar.xz |
Add string pools to save storage.
Adds string hashes so CFX strings will interoperate with
STL unordered containers.
These will be employed per-document in a subsequent cl.
BUG=pdfium:597
Review-Url: https://codereview.chromium.org/2341683005
Diffstat (limited to 'core/fxcrt/fx_basic_wstring.cpp')
-rw-r--r-- | core/fxcrt/fx_basic_wstring.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fxcrt/fx_basic_wstring.cpp b/core/fxcrt/fx_basic_wstring.cpp index 29e915f30c..377f09c913 100644 --- a/core/fxcrt/fx_basic_wstring.cpp +++ b/core/fxcrt/fx_basic_wstring.cpp @@ -9,12 +9,15 @@ #include <algorithm> #include <cctype> +#include "core/fxcrt/include/cfx_string_pool_template.h" #include "core/fxcrt/include/fx_basic.h" #include "core/fxcrt/include/fx_ext.h" #include "third_party/base/numerics/safe_math.h" template class CFX_StringDataTemplate<FX_WCHAR>; template class CFX_StringCTemplate<FX_WCHAR>; +template class CFX_StringPoolTemplate<CFX_WideString>; +template struct std::hash<CFX_WideString>; namespace { |