Kaydet (Commit) e8d84854 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1327445 Unchecked dynamic_cast

and

coverity#1327444 Unchecked dynamic_cast

Change-Id: I459d588db4a3dd6591b81babb3586fe97ab96c63
üst 9facb827
...@@ -284,7 +284,7 @@ void GalleryBrowser1::ImplGalleryThemeProperties( const OUString & rThemeName, b ...@@ -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(); long nRet = pDialog->GetResult();
...@@ -329,12 +329,12 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog ...@@ -329,12 +329,12 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog
IMPL_LINK_TYPED( GalleryBrowser1, EndNewThemePropertiesDlgHdl, Dialog&, rDialog, void ) 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 ) 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 ) IMPL_LINK_TYPED( GalleryBrowser1, DestroyThemePropertiesDlgHdl, void*, p, void )
......
...@@ -100,7 +100,7 @@ private: ...@@ -100,7 +100,7 @@ private:
void ImplGetExecuteVector(::std::vector< sal_uInt16 >& o_aExec); void ImplGetExecuteVector(::std::vector< sal_uInt16 >& o_aExec);
void ImplExecute( sal_uInt16 nId ); void ImplExecute( sal_uInt16 nId );
void ImplGalleryThemeProperties( const OUString & rThemeName, bool bCreateNew ); void ImplGalleryThemeProperties( const OUString & rThemeName, bool bCreateNew );
void ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog, bool bCreateNew ); void ImplEndGalleryThemeProperties(Dialog* pDialog, bool bCreateNew);
// Control // Control
virtual void Resize() override; virtual void Resize() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment