summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-12 11:21:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-28 11:23:34 +0200
commit9348b322a5c230dfcc2231661b73e480b130fcd9 (patch)
tree2c81a97d6f54229c87c5e2a37c73935ffc2527ac /test
parentnow this argument is always true (diff)
downloadcore-9348b322a5c230dfcc2231661b73e480b130fcd9.tar.gz
core-9348b322a5c230dfcc2231661b73e480b130fcd9.zip
clang-tidy readability-simplify-boolean-expr
Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a Reviewed-on: https://gerrit.libreoffice.org/36450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/source/diff/diff.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx
index 9b62c68f69c2..5b8d371a8b7c 100644
--- a/test/source/diff/diff.cxx
+++ b/test/source/diff/diff.cxx
@@ -65,10 +65,7 @@ struct tolerance
cmp = xmlStrcmp(attribName, rTol.attribName);
}
- if(cmp>=0)
- return false;
- else
- return true;
+ return cmp < 0;
}
};