diff options
author | Mathias Bauer <mba@openoffice.org> | 2010-01-19 17:27:28 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2010-01-19 17:27:28 +0100 |
commit | 3e01ab9b13aa6bf670d461aaa50d03da8f9414dc (patch) | |
tree | 4c1cdc48c10ed5dc1697be565fe3a9ec6fe54fdf /svx | |
parent | 3d7a9891b2309c30da4a12b4cf5f5fd222195f2b (diff) |
#i107450#: some problems with the dialog factory
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svxdlg.hxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/svxdlg.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/inc/svx/svxdlg.hxx b/svx/inc/svx/svxdlg.hxx index 7f91022c9409..513aa451a24e 100644 --- a/svx/inc/svx/svxdlg.hxx +++ b/svx/inc/svx/svxdlg.hxx @@ -339,7 +339,7 @@ class SVX_DLLPUBLIC SvxAbstractDialogFactory : public SfxAbstractDialogFactory, public: static SvxAbstractDialogFactory* Create(); - // define dtor as this will create typeinfo in svx library + // define dtor as this will create typeinfo and in svx library and export vtable virtual ~SvxAbstractDialogFactory(); virtual SfxAbstractTabDialog* CreateTextTabDialog( Window* pParent, diff --git a/svx/source/dialog/svxdlg.cxx b/svx/source/dialog/svxdlg.cxx index 7be500b0a3c7..afb17de7c87d 100644 --- a/svx/source/dialog/svxdlg.cxx +++ b/svx/source/dialog/svxdlg.cxx @@ -35,7 +35,7 @@ SvxAbstractDialogFactory* SvxAbstractDialogFactory::Create() { - return (SvxAbstractDialogFactory*) VclAbstractDialogFactory::Create(); + return dynamic_cast< SvxAbstractDialogFactory* >( VclAbstractDialogFactory::Create() ); } SvxAbstractDialogFactory::~SvxAbstractDialogFactory() |