diff options
Diffstat (limited to 'svx/source/inc/formcontrolling.hxx')
-rw-r--r-- | svx/source/inc/formcontrolling.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/inc/formcontrolling.hxx b/svx/source/inc/formcontrolling.hxx index a24aab1acfb2..8b0a824dc9c7 100644 --- a/svx/source/inc/formcontrolling.hxx +++ b/svx/source/inc/formcontrolling.hxx @@ -27,6 +27,7 @@ #include <com/sun/star/sdb/XSQLErrorListener.hpp> #include <cppuhelper/implbase.hxx> +#include <rtl/ref.hxx> #include <vector> @@ -72,7 +73,7 @@ namespace svx { protected: IControllerFeatureInvalidation* m_pInvalidationCallback; // necessary as long as m_pImpl is not yet constructed - FormControllerHelper* m_pImpl; + rtl::Reference<FormControllerHelper> m_pImpl; public: /** standard ctor @@ -116,8 +117,8 @@ namespace svx void dispose(); // access to the instance which implements the functionality. Not to be used when not assigned - inline const FormControllerHelper* operator->() const { return m_pImpl; } - inline FormControllerHelper* operator->() { return m_pImpl; } + inline const FormControllerHelper* operator->() const { return m_pImpl.get(); } + inline FormControllerHelper* operator->() { return m_pImpl.get(); } }; |