summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-07-20 23:41:26 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-21 18:38:48 +0000
commitd0856ba49c2bdcb288e0976d2162db17210a66df (patch)
tree48b8620b823fccaca15a6149dbb130cdc417bcbc /fpdfsdk
parent926c65a49ca4769274022678e53144fe335c70b5 (diff)
downloadpdfium-d0856ba49c2bdcb288e0976d2162db17210a66df.tar.xz
Fix nits from commit 67ccef7.chromium/3164
Change-Id: I24b191ecfe8b65a7d0ddc4958dc117de9ed9ae83 Reviewed-on: https://pdfium-review.googlesource.com/8630 Reviewed-by: Jane Liu <janeliulwq@google.com> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index 7dbaf7f9e7..f8823c994c 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -1397,7 +1397,6 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document,
return nullptr;
CPDF_Object* pDestObj = nullptr;
- CFX_ByteString bsName;
CFX_WideString wsName;
CPDF_NameTree nameTree(pDoc, "Dests");
int count = nameTree.GetCount();
@@ -1413,6 +1412,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document,
index -= count;
int i = 0;
+ CFX_ByteString bsName;
for (const auto& it : *pDest) {
bsName = it.first;
pDestObj = it.second.get();