diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/officeipcthread.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index b1674138c5cd..923aab00c702 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -667,8 +667,9 @@ void RequestHandler::EnableRequests() if (pGlobal->mState != State::Downing) { pGlobal->mState = State::RequestsEnabled; } - // hit the compiler over the head - ProcessDocumentsRequest aEmptyReq { std::optional< OUString >() }; + // hit the compiler over the head - this avoids GCC -Werror=maybe-uninitialized + std::optional<OUString> tmp; + ProcessDocumentsRequest aEmptyReq(tmp); // trigger already queued requests RequestHandler::ExecuteCmdLineRequests(aEmptyReq, true); } |