summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfannot_embeddertest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-10 20:57:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-10 20:57:15 +0000
commit4afee170f5e26b044236fd1e93c6ae2371a993de (patch)
treec7d7e15bf3909a4bf2a7477cbacc373f4eca99e7 /fpdfsdk/fpdfannot_embeddertest.cpp
parent3ffde1bc73156098e78e5e303b3f5198a1d073b8 (diff)
downloadpdfium-4afee170f5e26b044236fd1e93c6ae2371a993de.tar.xz
Fix some nits from commit a74e75d.
Change-Id: Ib4556ac75efafee5a2566ad76acd87883303660f Reviewed-on: https://pdfium-review.googlesource.com/22679 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfannot_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdfannot_embeddertest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfannot_embeddertest.cpp b/fpdfsdk/fpdfannot_embeddertest.cpp
index 6d4521f26e..f07070a4a5 100644
--- a/fpdfsdk/fpdfannot_embeddertest.cpp
+++ b/fpdfsdk/fpdfannot_embeddertest.cpp
@@ -19,12 +19,12 @@ static constexpr char kContentsKey[] = "Contents";
class FPDFAnnotEmbeddertest : public EmbedderTest {};
-const std::wstring BufferToWString(std::vector<char>& buf) {
- return GetPlatformWString(reinterpret_cast<unsigned short*>(buf.data()));
+std::wstring BufferToWString(const std::vector<char>& buf) {
+ return GetPlatformWString(reinterpret_cast<FPDF_WIDESTRING>(buf.data()));
}
-const std::string BufferToString(std::vector<char>& buf) {
- return GetPlatformString(reinterpret_cast<unsigned short*>(buf.data()));
+std::string BufferToString(const std::vector<char>& buf) {
+ return GetPlatformString(reinterpret_cast<FPDF_WIDESTRING>(buf.data()));
}
TEST_F(FPDFAnnotEmbeddertest, RenderAnnotWithOnlyRolloverAP) {