Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1553)

Unified Diff: testing/fx_string_testhelpers.cpp

Issue 1874773002: Templatize CFX_{Byte,Wide}StringC (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove one <type_traits> include. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdfium.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/fx_string_testhelpers.cpp
diff --git a/testing/fx_string_testhelpers.cpp b/testing/fx_string_testhelpers.cpp
index b2d30f3a060189e0273184b30746e36498cd2e40..934dd680e40f751edefc8012484fca3476bf032b 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);
« no previous file with comments | « pdfium.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698