diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-02 07:42:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-02 07:42:25 -0700 |
commit | 2235b7b52e2cedea9b5d4822de9548994362ca96 (patch) | |
tree | 69f8857aeab295ef7722ba139c987ba21ed66337 /xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp | |
parent | a31d4a90f3446df76d8d3ffa0b441db0ad4623af (diff) | |
download | pdfium-2235b7b52e2cedea9b5d4822de9548994362ca96.tar.xz |
Change ThrowScriptErrorMessage() to just ThrowException().
Shorter and easier to remember.
Review-Url: https://codereview.chromium.org/2029043002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp index 60db201d69..0610da2f5f 100644 --- a/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp +++ b/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp @@ -37,7 +37,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_Ready( return; } if (bSetting) { - ThrowScriptErrorMessage(XFA_IDS_UNABLE_SET_READY); + ThrowException(XFA_IDS_UNABLE_SET_READY); return; } int32_t iStatus = pNotify->GetLayoutStatus(); @@ -63,7 +63,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_HWXY( methodName = L"y"; break; } - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, methodName); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, methodName); return; } CXFA_Node* pNode = NULL; @@ -177,7 +177,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_PageSpan( CFXJSE_Arguments* pArguments) { int32_t iLength = pArguments->GetLength(); if (iLength != 1) { - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"pageSpan"); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"pageSpan"); return; } CXFA_Node* pNode = NULL; @@ -349,7 +349,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_PageContent( CFXJSE_Arguments* pArguments) { int32_t iLength = pArguments->GetLength(); if (iLength < 1 || iLength > 3) { - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"pageContent"); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"pageContent"); return; } int32_t iIndex = 0; @@ -432,8 +432,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_AbsPageInBatch( CFXJSE_Arguments* pArguments) { int32_t iLength = pArguments->GetLength(); if (iLength != 1) { - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, - L"absPageInBatch"); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"absPageInBatch"); return; } CXFA_Node* pNode = NULL; @@ -467,8 +466,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_SheetInBatch( CFXJSE_Arguments* pArguments) { int32_t iLength = pArguments->GetLength(); if (iLength != 1) { - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, - L"sheetInBatch"); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, L"sheetInBatch"); return; } CXFA_Node* pNode = NULL; @@ -523,7 +521,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_PageImp( } else { methodName = L"page"; } - ThrowScriptErrorMessage(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, methodName); + ThrowException(XFA_IDS_INCORRECT_NUMBER_OF_METHOD, methodName); return; } CXFA_Node* pNode = NULL; |