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 /comphelper | |
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 'comphelper')
-rw-r--r-- | comphelper/source/container/namecontainer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/container/namecontainer.cxx b/comphelper/source/container/namecontainer.cxx index fa8343c60d49..0f905fac9124 100644 --- a/comphelper/source/container/namecontainer.cxx +++ b/comphelper/source/container/namecontainer.cxx @@ -155,7 +155,7 @@ Type SAL_CALL NameContainer::getElementType() Reference< XNameContainer > comphelper::NameContainer_createInstance( const Type& aType ) { - return static_cast<XNameContainer*>(new NameContainer( aType )); + return new NameContainer(aType); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |