diff options
Diffstat (limited to 'sd/source/ui/tools')
-rw-r--r-- | sd/source/ui/tools/PreviewRenderer.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/tools/TimerBasedTaskExecution.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index 83812ebbe69a..c12930b10ece 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -208,7 +208,7 @@ bool PreviewRenderer::Initialize ( // Create view ProvideView (pDocShell); - if (mpView.get() == nullptr) + if (mpView == nullptr) return false; // Adjust contrast mode. @@ -390,7 +390,7 @@ void PreviewRenderer::ProvideView (DrawDocShell* pDocShell) if (mpDocShellOfView != nullptr) StartListening (*mpDocShellOfView); } - if (mpView.get() == nullptr) + if (mpView == nullptr) { mpView.reset (new DrawView (pDocShell, mpPreviewDevice.get(), nullptr)); } diff --git a/sd/source/ui/tools/TimerBasedTaskExecution.cxx b/sd/source/ui/tools/TimerBasedTaskExecution.cxx index af1b9ff6f065..379665e32f6a 100644 --- a/sd/source/ui/tools/TimerBasedTaskExecution.cxx +++ b/sd/source/ui/tools/TimerBasedTaskExecution.cxx @@ -48,7 +48,7 @@ std::shared_ptr<TimerBasedTaskExecution> TimerBasedTaskExecution::Create ( // Let the new object have a shared_ptr to itself, so that it can // release itself when the AsynchronousTask has been executed // completely. - if (pExecution->mpTask.get() != nullptr) + if (pExecution->mpTask != nullptr) pExecution->mpSelf = pExecution; return pExecution; } @@ -101,7 +101,7 @@ TimerBasedTaskExecution::~TimerBasedTaskExecution() IMPL_LINK_NOARG(TimerBasedTaskExecution, TimerCallback, Timer *, void) { - if (mpTask.get() != nullptr) + if (mpTask != nullptr) { if (mpTask->HasNextStep()) { |