summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-01-05 10:06:09 -0800
committerTom Sepez <tsepez@chromium.org>2016-01-05 10:06:09 -0800
commited34cdf99d5a4b33e57f81f9244a311f6fb86db3 (patch)
treeee5c9711c68cb3971ce058400a6f777324873e60 /samples
parent5dac8047f02c937a5a3546a8cc5b352db2188d97 (diff)
downloadpdfium-ed34cdf99d5a4b33e57f81f9244a311f6fb86db3.tar.xz
Make FPDF_WIDESTRING work regardless of endianness.
Given the helper routines, use it in the find bookmark test instead of just trusting another bookmarks title. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1554363002 .
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 89430f6dfd..9816bb8a31 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -196,7 +196,7 @@ void WriteEmf(FPDF_PAGE page, const char* pdf_name, int num) {
int ExampleAppAlert(IPDF_JSPLATFORM*, FPDF_WIDESTRING msg, FPDF_WIDESTRING,
int, int) {
- std::wstring platform_string = GetWideString(msg);
+ std::wstring platform_string = GetPlatformWString(msg);
printf("Alert: %ls\n", platform_string.c_str());
return 0;
}