summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx10
-rw-r--r--sw/source/core/layout/paintfrm.cxx7
2 files changed, 6 insertions, 11 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index dd93b15e9aaf..c0b8984e6cf4 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -906,12 +906,10 @@ static bool paintUsingPrimitivesHelper(
std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor2D(
drawinglayer::processor2d::createProcessor2DFromOutputDevice(
rOutputDevice, aViewInformation2D) );
- if(pProcessor2D)
- {
- // render and cleanup
- pProcessor2D->process(rSequence);
- return true;
- }
+
+ // render and cleanup
+ pProcessor2D->process(rSequence);
+ return true;
}
}
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index edd2491ad138..01fe03594ba9 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -1800,11 +1800,8 @@ bool DrawFillAttributes(
std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(drawinglayer::processor2d::createProcessor2DFromOutputDevice(
rOut,
aViewInformation2D) );
- if(pProcessor)
- {
- pProcessor->process(*pPrimitives);
- return true;
- }
+ pProcessor->process(*pPrimitives);
+ return true;
}
}
}