[Libreoffice-commits] core.git: desktop/source
Stephan Bergmann
sbergman at redhat.com
Thu Mar 31 09:59:44 UTC 2016
desktop/source/app/officeipcthread.cxx | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
New commits:
commit ab48f014167b85bc0871c96b84e3b70201ed353e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Mar 31 11:59:00 2016 +0200
Clean up
Change-Id: I93efe38ee7148c87d2fabd6f3c77d28b85b6e511
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 63114c6..55f6c64 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
More information about the Libreoffice-commits
mailing list