summaryrefslogtreecommitdiff
path: root/testing/fx_string_testhelpers.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-13 15:02:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-13 15:02:44 -0700
commitf7036ba5884b9829fcb17aea4f3a16831abb7516 (patch)
treee142bb59eea5d48d354a6f4841d1ef57306e985f /testing/fx_string_testhelpers.cpp
parent19ea309f3d46bbd76d4201b4e791b11d736f7834 (diff)
downloadpdfium-f7036ba5884b9829fcb17aea4f3a16831abb7516.tar.xz
Templatize CFX_{Byte,Wide}StringC
Review-Url: https://codereview.chromium.org/1874773002
Diffstat (limited to 'testing/fx_string_testhelpers.cpp')
-rw-r--r--testing/fx_string_testhelpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/fx_string_testhelpers.cpp b/testing/fx_string_testhelpers.cpp
index b2d30f3a06..934dd680e4 100644
--- a/testing/fx_string_testhelpers.cpp
+++ b/testing/fx_string_testhelpers.cpp
@@ -17,7 +17,7 @@ std::ostream& output_string(std::ostream& out, const T& str) {
unsigned int c = str.GetAt(i);
if (c >= 0x20 && c < 0x7F) {
out << static_cast<char>(c);
- } else if (sizeof(typename T::value_type) == 1) {
+ } else if (sizeof(typename T::CharType) == 1) {
out << "\\x" << std::setw(2) << c << std::setw(0);
} else if (c < 0x10000) {
out << "\\u" << std::setw(4) << c << std::setw(0);