summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfdoc.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-16 20:27:04 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-16 20:27:04 +0000
commitaca3efc9c0d8750b7f642a23eea1a665d7a1af5c (patch)
treeca4370b85a4c5c10c1da6cd8883ecec451174365 /fpdfsdk/fpdfdoc.cpp
parent5ddbd382cd434070ab5b99c3600fc2703e05b400 (diff)
downloadpdfium-aca3efc9c0d8750b7f642a23eea1a665d7a1af5c.tar.xz
Fix methods that have definition with different parameter names.
Found by ClangTidy. BUG=pdfium:1039 Change-Id: I2bb9256a63d5459e959c1a3228418073245d7a86 Reviewed-on: https://pdfium-review.googlesource.com/28731 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfdoc.cpp')
-rw-r--r--fpdfsdk/fpdfdoc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/fpdfsdk/fpdfdoc.cpp b/fpdfsdk/fpdfdoc.cpp
index e5edc29b9f..b8209cc972 100644
--- a/fpdfsdk/fpdfdoc.cpp
+++ b/fpdfsdk/fpdfdoc.cpp
@@ -200,29 +200,29 @@ FPDFAction_GetURIPath(FPDF_DOCUMENT document,
}
FPDF_EXPORT unsigned long FPDF_CALLCONV
-FPDFDest_GetPageIndex(FPDF_DOCUMENT document, FPDF_DEST pDest) {
- if (!pDest)
+FPDFDest_GetPageIndex(FPDF_DOCUMENT document, FPDF_DEST dest) {
+ if (!dest)
return 0;
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return 0;
- CPDF_Dest dest(static_cast<CPDF_Array*>(pDest));
- return dest.GetPageIndexDeprecated(pDoc);
+ CPDF_Dest destination(static_cast<CPDF_Array*>(dest));
+ return destination.GetPageIndexDeprecated(pDoc);
}
FPDF_EXPORT int FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document,
- FPDF_DEST pDest) {
- if (!pDest)
+ FPDF_DEST dest) {
+ if (!dest)
return -1;
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return -1;
- CPDF_Dest dest(static_cast<CPDF_Array*>(pDest));
- return dest.GetDestPageIndex(pDoc);
+ CPDF_Dest destination(static_cast<CPDF_Array*>(dest));
+ return destination.GetDestPageIndex(pDoc);
}
FPDF_EXPORT unsigned long FPDF_CALLCONV