diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-16 20:39:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-17 14:46:26 +0100 |
commit | e8d848543ee6b7e4696381ececc476d3522b3614 (patch) | |
tree | 3e98e43b658dc3b933e20f5fa5a973bf07cc939c | |
parent | 9facb8271d9e87b33e7280f400d19bea3c326eea (diff) |
coverity#1327445 Unchecked dynamic_cast
and
coverity#1327444 Unchecked dynamic_cast
Change-Id: I459d588db4a3dd6591b81babb3586fe97ab96c63
-rw-r--r-- | svx/source/gallery2/galbrws1.cxx | 6 | ||||
-rw-r--r-- | svx/source/gallery2/galbrws1.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index b5245fb1129e..f83c6f32bb43 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -284,7 +284,7 @@ void GalleryBrowser1::ImplGalleryThemeProperties( const OUString & rThemeName, b } } -void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog, bool bCreateNew ) +void GalleryBrowser1::ImplEndGalleryThemeProperties(Dialog* pDialog, bool bCreateNew) { long nRet = pDialog->GetResult(); @@ -329,12 +329,12 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog IMPL_LINK_TYPED( GalleryBrowser1, EndNewThemePropertiesDlgHdl, Dialog&, rDialog, void ) { - ImplEndGalleryThemeProperties( dynamic_cast<VclAbstractDialog2*>(&rDialog), true ); + ImplEndGalleryThemeProperties(&rDialog, true); } IMPL_LINK_TYPED( GalleryBrowser1, EndThemePropertiesDlgHdl, Dialog&, rDialog, void ) { - ImplEndGalleryThemeProperties( dynamic_cast<VclAbstractDialog2*>(&rDialog), false ); + ImplEndGalleryThemeProperties(&rDialog, false); } IMPL_LINK_TYPED( GalleryBrowser1, DestroyThemePropertiesDlgHdl, void*, p, void ) diff --git a/svx/source/gallery2/galbrws1.hxx b/svx/source/gallery2/galbrws1.hxx index c3c3f74b2cd0..595b2e7e6f9b 100644 --- a/svx/source/gallery2/galbrws1.hxx +++ b/svx/source/gallery2/galbrws1.hxx @@ -100,7 +100,7 @@ private: void ImplGetExecuteVector(::std::vector< sal_uInt16 >& o_aExec); void ImplExecute( sal_uInt16 nId ); void ImplGalleryThemeProperties( const OUString & rThemeName, bool bCreateNew ); - void ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog, bool bCreateNew ); + void ImplEndGalleryThemeProperties(Dialog* pDialog, bool bCreateNew); // Control virtual void Resize() override; |