diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 13:58:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 14:11:12 +0100 |
commit | 004b026865839a044fb9cd2e08e5eca46a64c8fe (patch) | |
tree | a307195fbb974e2ef2dd8e5c54e9551d743c001a /cui | |
parent | d2275c825d2300f3f176105058ac70b762bcc115 (diff) |
dynamic_cast of this to the type is already is
Change-Id: I4265819a60ae60b672c890d6ba31b0c2827851ae
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 048e4585e931..40a288020e82 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -69,9 +69,7 @@ XPropertyListRef SvxColorTabPage::GetList() // URGH - abstract this nicely ... for re-using SvxLoadSaveEmbed if( !pList.is() ) { - SvxColorTabPage *pPage = dynamic_cast< SvxColorTabPage *>( this ); - if( pPage ) - pList = pPage->GetColorList(); + pList = GetColorList(); } return XPropertyListRef( static_cast< XPropertyList * >( pList.get() ) ); |