summaryrefslogtreecommitdiffstats
path: root/desktop/source/lib/init.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-18 08:27:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-18 09:46:28 +0200
commit5fb66ae5595b7435e8954df31473fad15a74b8c2 (patch)
tree3b3f0ce3eafa10557a7e78b10851c97ee16c7ebf /desktop/source/lib/init.cxx
parentxmlsecurity: avoid repeated manual calls to PORT_FreeArena() (diff)
downloadcore-5fb66ae5595b7435e8954df31473fad15a74b8c2.tar.gz
core-5fb66ae5595b7435e8954df31473fad15a74b8c2.zip
clang-tidy readability-simplify-boolean-expr
Change-Id: I78fa01a6c803dec782488490b730af3a11814d64 Reviewed-on: https://gerrit.libreoffice.org/61902 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r--desktop/source/lib/init.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 6a23444900b1..6dfa7cc28825 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1136,13 +1136,9 @@ void CallbackFlushHandler::queue(const int type, const char* data)
std::stringstream aOldStream(elem.second);
boost::property_tree::read_json(aOldStream, aOldTree);
const unsigned nOldDialogId = aOldTree.get<unsigned>("id", 0);
- if (aOldTree.get<std::string>("action", "") == "invalidate" &&
+ return aOldTree.get<std::string>("action", "") == "invalidate" &&
nLOKWindowId == nOldDialogId &&
- aOldTree.get<std::string>("rectangle", "").empty())
- {
- return true;
- }
- return false;
+ aOldTree.get<std::string>("rectangle", "").empty();
});
// we found a invalidate-all window callback