summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/tpformula.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 09:24:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 11:41:21 +0200
commit3a8ef92bc0c80d4b8c0a7ef78261d262769f1946 (patch)
treeef6dbba07dea625405dcc9f45a77f59c67662851 /sc/source/ui/optdlg/tpformula.cxx
parent3698b72185c1ee6ff7e2c65fa8f6e7c6bbf0479e (diff)
clang-tidy readability-simplify-boolean-expr in sc
Change-Id: I702e52e56487f201b9e0d7af21ff8167464aa58c Reviewed-on: https://gerrit.libreoffice.org/36876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/optdlg/tpformula.cxx')
-rw-r--r--sc/source/ui/optdlg/tpformula.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/optdlg/tpformula.cxx b/sc/source/ui/optdlg/tpformula.cxx
index 3cb64e4244b8..104661b61ddb 100644
--- a/sc/source/ui/optdlg/tpformula.cxx
+++ b/sc/source/ui/optdlg/tpformula.cxx
@@ -190,10 +190,7 @@ bool ScTpFormulaOptions::IsValidSeparatorSet() const
// Make sure the column and row separators are different.
OUString aColStr = mpEdSepArrayCol->GetText();
OUString aRowStr = mpEdSepArrayRow->GetText();
- if (aColStr == aRowStr)
- return false;
-
- return true;
+ return aColStr != aRowStr;
}
IMPL_LINK( ScTpFormulaOptions, ButtonHdl, Button*, pBtn, void )