summaryrefslogtreecommitdiff
path: root/editeng/source/misc/unolingu.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-12 15:26:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-12 15:26:06 +0200
commit4e2cc748f5ec00ef6ed326ec03aff8f0cd8c9654 (patch)
treee7fa5ddb86e20ba795121d4b87207d6bdce99dd2 /editeng/source/misc/unolingu.cxx
parent5c961fa9ea771572c262fe06ced8e6bda42f60e8 (diff)
Clean up
Change-Id: I3fc017fb5ef1fe704d273d667405eee588fa35cb
Diffstat (limited to 'editeng/source/misc/unolingu.cxx')
-rw-r--r--editeng/source/misc/unolingu.cxx25
1 files changed, 9 insertions, 16 deletions
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index e9c087bdfc09..049e71db339b 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -432,26 +432,25 @@ uno::Reference< linguistic2::XPossibleHyphens > SAL_CALL
}
-typedef cppu::WeakImplHelper1 < XEventListener > LinguMgrAppExitLstnrBaseClass;
+typedef cppu::WeakImplHelper1 < XEventListener > LinguMgrExitLstnrBaseClass;
-class LinguMgrAppExitLstnr : public LinguMgrAppExitLstnrBaseClass
+class LinguMgrExitLstnr : public LinguMgrExitLstnrBaseClass
{
uno::Reference< XDesktop2 > xDesktop;
-public:
- LinguMgrAppExitLstnr();
- virtual ~LinguMgrAppExitLstnr();
-
- virtual void AtExit() = 0;
+ void AtExit();
+public:
+ LinguMgrExitLstnr();
+ virtual ~LinguMgrExitLstnr();
// lang::XEventListener
virtual void SAL_CALL disposing(const EventObject& rSource)
throw( RuntimeException, std::exception ) SAL_OVERRIDE;
};
-LinguMgrAppExitLstnr::LinguMgrAppExitLstnr()
+LinguMgrExitLstnr::LinguMgrExitLstnr()
{
// add object to frame::Desktop EventListeners in order to properly call
// the AtExit function at appliction exit.
@@ -461,7 +460,7 @@ LinguMgrAppExitLstnr::LinguMgrAppExitLstnr()
xDesktop->addEventListener( this );
}
-LinguMgrAppExitLstnr::~LinguMgrAppExitLstnr()
+LinguMgrExitLstnr::~LinguMgrExitLstnr()
{
if (xDesktop.is())
{
@@ -471,7 +470,7 @@ LinguMgrAppExitLstnr::~LinguMgrAppExitLstnr()
OSL_ENSURE(!xDesktop.is(), "reference to desktop should be realeased");
}
-void LinguMgrAppExitLstnr::disposing(const EventObject& rSource)
+void LinguMgrExitLstnr::disposing(const EventObject& rSource)
throw( RuntimeException, std::exception )
{
if (xDesktop.is() && rSource.Source == xDesktop)
@@ -483,12 +482,6 @@ void LinguMgrAppExitLstnr::disposing(const EventObject& rSource)
}
}
-class LinguMgrExitLstnr : public LinguMgrAppExitLstnr
-{
-public:
- virtual void AtExit() SAL_OVERRIDE;
-};
-
void LinguMgrExitLstnr::AtExit()
{
SolarMutexGuard g;