diff options
Diffstat (limited to 'eventattacher/source/eventattacher.cxx')
-rw-r--r-- | eventattacher/source/eventattacher.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 9d79da168c1b..eebfcf0c6cf6 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -296,13 +296,9 @@ EventAttacherImpl::~EventAttacherImpl() Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Reference< XMultiServiceFactory >& rSMgr ) throw( Exception ) { - Reference< XInterface > xRet; XEventAttacher *pEventAttacher = (XEventAttacher*) new EventAttacherImpl( comphelper::getComponentContext(rSMgr) ); - if (pEventAttacher) - { - xRet = Reference<XInterface>::query(pEventAttacher); - } + Reference< XInterface > xRet = Reference<XInterface>::query(pEventAttacher); return xRet; } |