From f7036ba5884b9829fcb17aea4f3a16831abb7516 Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 13 May 2016 15:02:43 -0700 Subject: Templatize CFX_{Byte,Wide}StringC Review-Url: https://codereview.chromium.org/1874773002 --- testing/fx_string_testhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/fx_string_testhelpers.cpp') 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(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); -- cgit v1.2.3