Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: fpdfsdk/src/fsdk_actionhandler.cpp

Issue 451483003: Clean up meaningless branch on commented-out code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Normalize whitespace. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fsdk_actionhandler.cpp
diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp
index 5ded984c631619f91851d3cf9b3262bc14026f79..9b41e47421f1ce4ef84bc68b3a68a8524610feac 100644
--- a/fpdfsdk/src/fsdk_actionhandler.cpp
+++ b/fpdfsdk/src/fsdk_actionhandler.cpp
@@ -269,22 +269,17 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteDocumentPageAction(const CPDF_Action& acti
FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, CPDF_Dictionary* pFieldDict)
{
- ASSERT(m_pEvi != NULL);
- ASSERT(pDocument != NULL);
- ASSERT(pFieldDict != NULL);
+ ASSERT(m_pEvi != NULL);
+ ASSERT(pDocument != NULL);
Nico 2014/08/06 21:17:17 The rest of the file uses tabs, we shouldn't mix t
+ ASSERT(pFieldDict != NULL);
- if (1/*m_pApp->IsValidDocument(pDocument)*/)
- {
- CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
- ASSERT(pInterForm != NULL);
+ CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
+ ASSERT(pInterForm != NULL);
- CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
- ASSERT(pPDFInterForm != NULL);
+ CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
+ ASSERT(pPDFInterForm != NULL);
- return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL;
- }
-
- return FALSE;
+ return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL;
}
FX_BOOL CPDFSDK_ActionHandler::ExecuteFieldAction(const CPDF_Action& action, CPDF_AAction::AActionType type,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698