[Libreoffice-commits] core.git: extensions/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jan 30 18:03:52 UTC 2019
extensions/source/scanner/scanwin.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 31d07df57fb97ae9bf2e6f2d749cc1a0769eb4ad
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jan 30 14:44:37 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jan 30 19:03:25 2019 +0100
loplugin:redundantcast (clang-cl)
Change-Id: Id86b69f1bceb228d6bc5e383e7d98f177780d402
Reviewed-on: https://gerrit.libreoffice.org/67148
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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));
More information about the Libreoffice-commits
mailing list