diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 09:37:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 09:37:18 +0200 |
commit | 746de8119cb5824cfcbe195313e1de258d3b8d24 (patch) | |
tree | ff59225154f125dbc922a83af3dd57d3a41a299e | |
parent | fbf8fa7e4728a717039b8779d69321cb88e5e527 (diff) |
Improved loplugin:redundantcast static_cast handling: framework
Change-Id: I3b4fa47a14a68edcdd3305787685531b0a760ab2
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 2 | ||||
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 28574963f084..8cc14fddf5ee 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -658,7 +658,7 @@ void LayoutManager::implts_writeWindowStateData( const OUString& aName, const UI aWindowState[1].Value <<= rElementData.m_bVisible; aWindowState[2].Name = WINDOWSTATE_PROPERTY_DOCKINGAREA; - aWindowState[2].Value <<= static_cast< DockingArea >( rElementData.m_aDockedData.m_nDockedArea ); + aWindowState[2].Value <<= rElementData.m_aDockedData.m_nDockedArea; aWindowState[3].Name = WINDOWSTATE_PROPERTY_DOCKPOS; aWindowState[3].Value <<= rElementData.m_aDockedData.m_aPos; diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 9ef5503210fa..6d6521efd06f 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -1594,7 +1594,7 @@ void ToolbarLayoutManager::implts_writeWindowStateData( const UIElement& rElemen aWindowState[1].Name = WINDOWSTATE_PROPERTY_VISIBLE; aWindowState[1].Value <<= rElementData.m_bVisible; aWindowState[2].Name = WINDOWSTATE_PROPERTY_DOCKINGAREA; - aWindowState[2].Value <<= static_cast< ui::DockingArea >( rElementData.m_aDockedData.m_nDockedArea ); + aWindowState[2].Value <<= rElementData.m_aDockedData.m_nDockedArea; awt::Point aPos = rElementData.m_aDockedData.m_aPos; aWindowState[3].Name = WINDOWSTATE_PROPERTY_DOCKPOS; |