diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-31 00:06:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-31 07:27:24 +0200 |
commit | 184be2d1352c5d3f3aa1e276d26c463c6e49b302 (patch) | |
tree | 65ee35397f445b264dcb05d0087aed60000f0e75 /xmlscript/source/xmldlg_imexp | |
parent | f42d729e41da918bc496d5feb5861a09737c438a (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: I54976062dc3f62eaaa79f89eff54454f0b24ac2c
Reviewed-on: https://gerrit.libreoffice.org/69989
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlscript/source/xmldlg_imexp')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index 4c8ea1327b21..50b86b5f601e 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -1767,8 +1767,7 @@ Reference< xml::sax::XDocumentHandler > importDialogModel( std::shared_ptr< std::vector< OUString > > pStyleNames( new std::vector< OUString > ); std::shared_ptr< std::vector< css::uno::Reference< css::xml::input::XElement > > > pStyles( new std::vector< css::uno::Reference< css::xml::input::XElement > > ); return ::xmlscript::createDocumentHandler( - static_cast< xml::input::XRoot * >( - new DialogImport( xContext, xDialogModel, pStyleNames, pStyles, xDocument ) ) ); + new DialogImport(xContext, xDialogModel, pStyleNames, pStyles, xDocument)); } } |