summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_rendercontext.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-26 16:33:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-26 16:33:01 -0700
commit3bd3841291b46bd7ae31cfb8dc8035e5b4ed4e40 (patch)
tree46aba6b22f524abe514b56a3e0980a2047051fb3 /fpdfsdk/fsdk_rendercontext.cpp
parent2f1e05a44bbc38a4afea3fde8c8018dc127b8659 (diff)
downloadpdfium-3bd3841291b46bd7ae31cfb8dc8035e5b4ed4e40.tar.xz
Remove checks for _WIN32_WCE.
Review-Url: https://codereview.chromium.org/2011563006
Diffstat (limited to 'fpdfsdk/fsdk_rendercontext.cpp')
-rw-r--r--fpdfsdk/fsdk_rendercontext.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/fpdfsdk/fsdk_rendercontext.cpp b/fpdfsdk/fsdk_rendercontext.cpp
index eb630dd60f..3ba60778a7 100644
--- a/fpdfsdk/fsdk_rendercontext.cpp
+++ b/fpdfsdk/fsdk_rendercontext.cpp
@@ -15,10 +15,6 @@ void CRenderContext::Clear() {
m_pRenderer = NULL;
m_pAnnots = NULL;
m_pOptions = NULL;
-#ifdef _WIN32_WCE
- m_pBitmap = NULL;
- m_hBitmap = NULL;
-#endif
}
CRenderContext::~CRenderContext() {
@@ -28,11 +24,6 @@ CRenderContext::~CRenderContext() {
delete m_pAnnots;
delete m_pOptions->m_pOCContext;
delete m_pOptions;
-#ifdef _WIN32_WCE
- delete m_pBitmap;
- if (m_hBitmap)
- DeleteObject(m_hBitmap);
-#endif
}
IFSDK_PAUSE_Adapter::IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause) {
@@ -42,8 +33,5 @@ IFSDK_PAUSE_Adapter::IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause) {
IFSDK_PAUSE_Adapter::~IFSDK_PAUSE_Adapter() {}
FX_BOOL IFSDK_PAUSE_Adapter::NeedToPauseNow() {
- if (m_IPause->NeedToPauseNow) {
- return m_IPause->NeedToPauseNow(m_IPause);
- }
- return FALSE;
+ return m_IPause->NeedToPauseNow && m_IPause->NeedToPauseNow(m_IPause);
}