diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-11 09:02:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-12 09:04:54 +0100 |
commit | cfbd830e9c4d1877989bc4ad93109551a0a4b0b7 (patch) | |
tree | a050319e1167c816ac284894de0c2d4a535ee23a /accessibility | |
parent | 294b9a415929f25982373e91cba9254686074b19 (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: I5fee1c4bebd1972fbb5e43da37149d4e2ff6ce0d
Reviewed-on: https://gerrit.libreoffice.org/67664
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/helper/acc_factory.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index aeca8b5d40ad..48458e8b62d3 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -309,12 +309,12 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLX else if ( nType == WindowType::STATUSBAR ) { - xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleStatusBar( _pXWindow )); + xContext = new VCLXAccessibleStatusBar(_pXWindow); } else if ( nType == WindowType::TABCONTROL ) { - xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleTabControl( _pXWindow )); + xContext = new VCLXAccessibleTabControl(_pXWindow); } else if ( nType == WindowType::TABPAGE && pWindow->GetAccessibleParentWindow() && pWindow->GetAccessibleParentWindow()->GetType() == WindowType::TABCONTROL ) @@ -346,11 +346,11 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLX else if ( ( nType == WindowType::HELPTEXTWINDOW ) || ( nType == WindowType::FIXEDLINE ) ) { - xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleFixedText( _pXWindow )); + xContext = new VCLXAccessibleFixedText(_pXWindow); } else { - xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleComponent( _pXWindow )); + xContext = new VCLXAccessibleComponent(_pXWindow); } } return xContext; |