diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-17 21:36:10 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-17 20:24:17 +0100 |
commit | 04cf6de098f0677b2623377c20983f229f0156be (patch) | |
tree | 084fb5365305e4579d9ce7242630d4c6888a091b /basctl/source | |
parent | 4859d0b6cee9477ab65e86923e7c0a0b88022d8e (diff) |
tdf#120703 PVS: remove redundant static casts
V572 It is odd that the object which was created using 'new' operator
is immediately cast to another type.
Change-Id: I6d1523e71b3e06be1cf41abaabb44e49fe11cd8e
Reviewed-on: https://gerrit.libreoffice.org/69369
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 8ccae470425e..5a763aa465b9 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1194,10 +1194,9 @@ void LibPage::ExportAsPackage( const OUString& aLibName ) implExportLib( aLibName, aTmpPath, xDummyHandler ); Reference< XCommandEnvironment > xCmdEnv = - static_cast<XCommandEnvironment*>( new OLibCommandEnvironment( Reference< task::XInteractionHandler >( - xHandler, UNO_QUERY ) ) ); + xHandler, UNO_QUERY)); ::ucbhelper::Content sourceContent( aSourcePath, xCmdEnv, comphelper::getProcessComponentContext() ); |