From d563855ac72ba9dcec7f111587d6efaafc715b0d Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 17 Jul 2018 20:03:29 +0000 Subject: Cleanup SetSavedCalled API Fix a couple of post submit comments on the originally version of this API. BUG=pdfium:953 Change-Id: Id5b7480c5791821340366371b4ab861e78d47e8b Reviewed-on: https://pdfium-review.googlesource.com/38150 Reviewed-by: Lei Zhang Commit-Queue: Ryan Harrison --- fpdfsdk/fpdf_formfill.cpp | 4 ++-- public/fpdf_formfill.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fpdfsdk/fpdf_formfill.cpp b/fpdfsdk/fpdf_formfill.cpp index 1af34b552f..d529a5be69 100644 --- a/fpdfsdk/fpdf_formfill.cpp +++ b/fpdfsdk/fpdf_formfill.cpp @@ -360,8 +360,8 @@ FPDFDOC_ExitFormFillEnvironment(FPDF_FORMHANDLE hHandle) { delete pFormFillEnv; } -FPDF_EXPORT void FPDF_CALLCONV FORM_SetSaveCallback(FORM_SAVECALLED callback, - FPDF_FORMHANDLE hHandle) { +FPDF_EXPORT void FPDF_CALLCONV FORM_SetSaveCallback(FPDF_FORMHANDLE hHandle, + FORM_SAVECALLED callback) { CPDFSDK_FormFillEnvironment* pFormFillEnv = HandleToCPDFSDKEnvironment(hHandle); if (!pFormFillEnv) diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 68ffcda56d..4a703d947a 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -1122,16 +1122,16 @@ typedef void (*FORM_SAVECALLED)(FPDF_FORMFILLINFO*); * loaded a PDF page, and method FPDFDOC_InitFormFillEnvironment had * been invoked. * Parameters: - * callback - Function pointer to the callback to be called when a - * Save is attempted. If NULL then no function will be - * invoked.. * hHandle - Handle to the form fill module. Returned by * FPDFDOC_InitFormFillEnvironment. + * callback - Function pointer to the callback to be called when a + * Save is attempted. If NULL then no function will be + * invoked. * Return Value: * NONE. **/ -FPDF_EXPORT void FPDF_CALLCONV FORM_SetSaveCallback(FORM_SAVECALLED callback, - FPDF_FORMHANDLE hHandle); +FPDF_EXPORT void FPDF_CALLCONV FORM_SetSaveCallback(FPDF_FORMHANDLE hHandle, + FORM_SAVECALLED callback); /** * Function: FORM_OnAfterLoadPage -- cgit v1.2.3