desktop/source/app/officeipcthread.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
New commits: commit ab48f014167b85bc0871c96b84e3b70201ed353e Author: Stephan Bergmann <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
