summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_actionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/cpdfsdk_actionhandler.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_actionhandler.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/fpdfsdk/cpdfsdk_actionhandler.cpp b/fpdfsdk/cpdfsdk_actionhandler.cpp
index 5b72082104..64d82b93ba 100644
--- a/fpdfsdk/cpdfsdk_actionhandler.cpp
+++ b/fpdfsdk/cpdfsdk_actionhandler.cpp
@@ -422,22 +422,24 @@ void CPDFSDK_ActionHandler::RunFieldJavaScript(
break;
case CPDF_AAction::GetFocus:
context->OnField_Focus(data->bModifier, data->bShift, pFormField,
- data->sValue);
+ &data->sValue);
break;
case CPDF_AAction::LoseFocus:
context->OnField_Blur(data->bModifier, data->bShift, pFormField,
- data->sValue);
+ &data->sValue);
break;
case CPDF_AAction::KeyStroke:
context->OnField_Keystroke(
- data->sChange, data->sChangeEx, data->bKeyDown, data->bModifier,
- data->nSelEnd, data->nSelStart, data->bShift, pFormField,
- data->sValue, data->bWillCommit, data->bFieldFull, data->bRC);
+ &data->sChange, data->sChangeEx, data->bKeyDown,
+ data->bModifier, &data->nSelEnd, &data->nSelStart, data->bShift,
+ pFormField, &data->sValue, data->bWillCommit, data->bFieldFull,
+ &data->bRC);
break;
case CPDF_AAction::Validate:
- context->OnField_Validate(
- data->sChange, data->sChangeEx, data->bKeyDown, data->bModifier,
- data->bShift, pFormField, data->sValue, data->bRC);
+ context->OnField_Validate(&data->sChange, data->sChangeEx,
+ data->bKeyDown, data->bModifier,
+ data->bShift, pFormField, &data->sValue,
+ &data->bRC);
break;
default:
NOTREACHED();