From 6fe0706f6726e5a5446c9f44e3d139cf73adeab9 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 5 Nov 2016 07:47:14 +0100 Subject: [PATCH] [loplugin:simplifybool] Change-Id: I20177b47fd756558430420710c0f497be49c8948 Reviewed-on: https://gerrit.libreoffice.org/30584 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- sc/source/core/data/columnspanset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx index 255c6fa932f9..efb79d0ea094 100644 --- a/sc/source/core/data/columnspanset.cxx +++ b/sc/source/core/data/columnspanset.cxx @@ -385,7 +385,7 @@ bool SingleColumnSpanSet::empty() const { // Empty if there's only the 0..MAXROW span with false. ColumnSpansType::const_iterator it = maSpans.begin(); - return (it->first == 0) && (it->second == false) && (++it != maSpans.end()) && (it->first == MAXROWCOUNT); + return (it->first == 0) && !(it->second) && (++it != maSpans.end()) && (it->first == MAXROWCOUNT); } }