diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-07-17 20:03:29 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-17 20:03:29 +0000 |
commit | d563855ac72ba9dcec7f111587d6efaafc715b0d (patch) | |
tree | e72a0031df7220514e4b817ad76afa1f341a27ca | |
parent | a97a660d47cd500a00f69ad429de0ca1551c7198 (diff) | |
download | pdfium-d563855ac72ba9dcec7f111587d6efaafc715b0d.tar.xz |
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 <thestig@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
-rw-r--r-- | fpdfsdk/fpdf_formfill.cpp | 4 | ||||
-rw-r--r-- | 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 |