summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/CommandDispatchContainer.hxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-05-19 17:08:43 +0200
committerIngrid Halama <iha@openoffice.org>2010-05-19 17:08:43 +0200
commit5be9c917443fbf32d934ddf953fbba2e25e5d884 (patch)
tree4ef1f6ca2613b4e59bde9a1133a0b7248cef5ac3 /chart2/source/controller/main/CommandDispatchContainer.hxx
parentefa9d1559bd91572b9b7806f6387879db88fd669 (diff)
chart47: #i109770# #i110253# prevent null access on empty m_aModel and reduce assertions 'already disposed'
Diffstat (limited to 'chart2/source/controller/main/CommandDispatchContainer.hxx')
-rw-r--r--chart2/source/controller/main/CommandDispatchContainer.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/main/CommandDispatchContainer.hxx b/chart2/source/controller/main/CommandDispatchContainer.hxx
index 2cee65405ef4..1c8769e0a6d9 100644
--- a/chart2/source/controller/main/CommandDispatchContainer.hxx
+++ b/chart2/source/controller/main/CommandDispatchContainer.hxx
@@ -33,6 +33,7 @@
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/DispatchDescriptor.hpp>
+#include <cppuhelper/weakref.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <set>
@@ -140,7 +141,7 @@ private:
mutable tDisposeVector m_aToBeDisposedDispatches;
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > m_xModel;
+ ::com::sun::star::uno::WeakReference< ::com::sun::star::frame::XModel > m_xModel;
::com::sun::star::uno::Reference< ::com::sun::star::chart2::XUndoManager > m_xUndoManager;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > m_xChartDispatcher;