desktop/source/app/officeipcthread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 867ee21fe4c0c9216aea57850efec4de3c3fc554 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sat Sep 8 09:26:12 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Sep 8 13:18:41 2018 +0200 clang-tidy bugprone-unused-raii in RequestHandler The message from clang-tidy is: warning: object destroyed immediately after creation; did you mean to name the object? The guard in RequestHandler::ExecuteCmdLineRequests comes from commit cf333a878ceed18d0343520a2c65be69fc433b1f Date: Sun Jan 21 22:10:09 2018 +0300 tdf#38915: set cProcessed condition on any process outcome and I'm sure it's intention was to set the flag on exit from the function, not immediately. Change-Id: Ibf874a5774770df00b9db7f673554e7ffda55072 Reviewed-on: https://gerrit.libreoffice.org/60183 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index a0fabc9bdaf6..2e5596c259ff 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -1319,7 +1319,7 @@ bool RequestHandler::ExecuteCmdLineRequests( osl::ClearableMutexGuard aGuard( GetMutex() ); // ensure that Processed flag (if exists) is signaled in any outcome - ConditionSetGuard(aRequest.pcProcessed); + ConditionSetGuard aSetGuard(aRequest.pcProcessed); static std::vector<DispatchWatcher::DispatchRequest> aDispatchList; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits