summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-31 11:59:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-03-31 11:59:23 +0200
commitab48f014167b85bc0871c96b84e3b70201ed353e (patch)
tree25f4ee5cea5c790b33e584a906014b12a3c01f15 /desktop
parent41bdaa37cc62f656cc164992c4c7d39bec7e57e2 (diff)
Clean up
Change-Id: I93efe38ee7148c87d2fabd6f3c77d28b85b6e511
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/officeipcthread.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 63114c65683c..55f6c64ff1db 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -455,8 +455,7 @@ RequestHandler::Status RequestHandler::Enable(bool ipc)
#endif
if (!ipc) {
- rtl::Reference< RequestHandler > pThread(new RequestHandler);
- pGlobal = pThread;
+ pGlobal = new RequestHandler;
return IPC_STATUS_OK;
}
@@ -535,10 +534,9 @@ RequestHandler::Status RequestHandler::Enable(bool ipc)
if ( nPipeMode == PIPEMODE_CREATED )
{
// Seems we are the one and only, so start listening thread
- rtl::Reference< RequestHandler > pThread(new RequestHandler);
- pThread->mPipeReaderThread = new PipeReaderThread(*pThread, pipe);
- pGlobal = pThread;
- pThread->mPipeReaderThread->launch();
+ pGlobal = new RequestHandler;
+ pGlobal->mPipeReaderThread = new PipeReaderThread(*pGlobal, pipe);
+ pGlobal->mPipeReaderThread->launch();
return IPC_STATUS_OK;
}
else