summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfeditpage.cpp3
-rw-r--r--fpdfsdk/fsdk_actionhandler.cpp7
-rw-r--r--fpdfsdk/pdfwindow/PWL_Edit.cpp2
-rw-r--r--fpdfsdk/pdfwindow/PWL_Wnd.cpp2
4 files changed, 8 insertions, 6 deletions
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp
index 95ae66685d..6ed375807f 100644
--- a/fpdfsdk/fpdfeditpage.cpp
+++ b/fpdfsdk/fpdfeditpage.cpp
@@ -26,6 +26,7 @@
#include "core/fpdfdoc/cpdf_annotlist.h"
#include "fpdfsdk/fsdk_define.h"
#include "public/fpdf_formfill.h"
+#include "third_party/base/logging.h"
#include "third_party/base/stl_util.h"
#ifdef PDF_ENABLE_XFA
@@ -170,7 +171,7 @@ DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page,
break;
}
default: {
- ASSERT(false);
+ NOTREACHED();
break;
}
}
diff --git a/fpdfsdk/fsdk_actionhandler.cpp b/fpdfsdk/fsdk_actionhandler.cpp
index 16724d5ac4..776a1714cd 100644
--- a/fpdfsdk/fsdk_actionhandler.cpp
+++ b/fpdfsdk/fsdk_actionhandler.cpp
@@ -17,6 +17,7 @@
#include "fpdfsdk/fsdk_define.h"
#include "fpdfsdk/javascript/ijs_event_context.h"
#include "fpdfsdk/javascript/ijs_runtime.h"
+#include "third_party/base/logging.h"
#include "third_party/base/stl_util.h"
bool CPDFSDK_ActionHandler::DoAction_DocOpen(
@@ -387,7 +388,7 @@ void CPDFSDK_ActionHandler::DoAction_NoJs(
DoAction_ImportData(action, pFormFillEnv);
break;
case CPDF_Action::JavaScript:
- ASSERT(false);
+ NOTREACHED();
break;
case CPDF_Action::SetOCGState:
DoAction_SetOCGState(pFormFillEnv, action);
@@ -504,7 +505,7 @@ void CPDFSDK_ActionHandler::RunFieldJavaScript(
data.sValue, data.bRC);
break;
default:
- ASSERT(false);
+ NOTREACHED();
break;
}
@@ -567,7 +568,7 @@ void CPDFSDK_ActionHandler::RunDocumentPageJavaScript(
pContext->OnPage_OutView(pFormFillEnv);
break;
default:
- ASSERT(false);
+ NOTREACHED();
break;
}
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp
index 4e37e9bde4..2b78824711 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp
@@ -33,7 +33,7 @@ CPWL_Edit::CPWL_Edit()
: m_pFillerNotify(nullptr), m_bFocus(false), m_pFormFiller(nullptr) {}
CPWL_Edit::~CPWL_Edit() {
- ASSERT(m_bFocus == false);
+ ASSERT(!m_bFocus);
}
CFX_ByteString CPWL_Edit::GetClassName() const {
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/PWL_Wnd.cpp
index 075b74651b..5523c59317 100644
--- a/fpdfsdk/pdfwindow/PWL_Wnd.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Wnd.cpp
@@ -195,7 +195,7 @@ CPWL_Wnd::CPWL_Wnd()
m_bEnabled(true) {}
CPWL_Wnd::~CPWL_Wnd() {
- ASSERT(m_bCreated == false);
+ ASSERT(!m_bCreated);
}
CFX_ByteString CPWL_Wnd::GetClassName() const {