summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-08 09:26:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-08 13:18:41 +0200
commit867ee21fe4c0c9216aea57850efec4de3c3fc554 (patch)
tree46d4e15dae5fe4340ccabaa00282d347170ca10c /desktop/source
parentba5670b262b46016011fc7b4ca33c90cd5a1fd6e (diff)
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.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/app/officeipcthread.cxx2
1 files changed, 1 insertions, 1 deletions
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;