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 /uui/source/passwordcontainer.cxx | |
parent | tdf#113448 fix PDF forms export (diff) | |
download | core-04cf6de098f0677b2623377c20983f229f0156be.tar.gz core-04cf6de098f0677b2623377c20983f229f0156be.zip |
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 'uui/source/passwordcontainer.cxx')
-rw-r--r-- | uui/source/passwordcontainer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uui/source/passwordcontainer.cxx b/uui/source/passwordcontainer.cxx index 82ee8ddf8b32..ef8fef56a10f 100644 --- a/uui/source/passwordcontainer.cxx +++ b/uui/source/passwordcontainer.cxx @@ -406,8 +406,8 @@ static uno::Reference< uno::XInterface > PasswordContainerInteractionHandler_CreateInstance( const uno::Reference< lang::XMultiServiceFactory> & rSMgr ) { - lang::XServiceInfo * pX = static_cast< lang::XServiceInfo * >( - new PasswordContainerInteractionHandler( comphelper::getComponentContext(rSMgr) ) ); + lang::XServiceInfo* pX + = new PasswordContainerInteractionHandler(comphelper::getComponentContext(rSMgr)); return uno::Reference< uno::XInterface >::query( pX ); } |