diff options
-rw-r--r-- | svx/source/form/fmscriptingenv.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/form/fmscriptingenv.cxx b/svx/source/form/fmscriptingenv.cxx index e6a8417b5fb7..9f12a2ad9c53 100644 --- a/svx/source/form/fmscriptingenv.cxx +++ b/svx/source/form/fmscriptingenv.cxx @@ -859,19 +859,17 @@ namespace svxform } }; - TerminateListener* mpListener; - css::uno::Reference<css::frame::XTerminateListener> mxLifeCycle; + rtl::Reference<TerminateListener> mxListener; public: QuitGuard() - : mpListener(new TerminateListener) - , mxLifeCycle(mpListener) + : mxListener(new TerminateListener) { - mpListener->start(); + mxListener->start(); } ~QuitGuard() { - mpListener->stop(); + mxListener->stop(); } }; |