summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-30 14:44:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-30 19:03:25 +0100
commit31d07df57fb97ae9bf2e6f2d749cc1a0769eb4ad (patch)
treedfd564523c314e38b868fe1feadaf62ec8b3e19e
parent1ec8caedace2de2b7e6bf91468301548b54a28a8 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: Id86b69f1bceb228d6bc5e383e7d98f177780d402 Reviewed-on: https://gerrit.libreoffice.org/67148 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--extensions/source/scanner/scanwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 9370f69b2105..b8dfa273fce3 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -339,7 +339,7 @@ bool Twain::InitializeNewShim(ScannerManager& rMgr, const VclPtr<vcl::Window>& x
return false; // Have a shim for another task already!
// hold reference to ScannerManager, to prevent premature death
- mxMgr.set(static_cast<OWeakObject*>(const_cast<ScannerManager*>(mpCurMgr = &rMgr)),
+ mxMgr.set(static_cast<OWeakObject*>(mpCurMgr = &rMgr),
css::uno::UNO_QUERY);
mpThread.set(new ShimListenerThread(xTopWindow));