summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-03 20:19:15 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-04 12:01:08 +0200
commit8a348300094dcf9d59f94caa75d32453c45c8ee0 (patch)
tree5c372cceee12c445f2be91b3141da8f42fb502f0 /sc/source/core
parent7d070fa5e4b055501cc59d3ea1b4e049db4bd4ae (diff)
cid#1596522 Inequality comparison against NULL
Change-Id: Ib489137e8fa2a5745a41703a6d25f9c950223ab8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167102 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/patattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 42bb54937a45..c9cad8641bce 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -274,7 +274,7 @@ bool CellAttributeHelper::RegisteredAttrSetLess::operator()(const ScPatternAttr*
return true;
if (cmp > 0)
return false;
- return lhs < static_cast<const ScPatternAttr*>(nullptr);
+ return false;
}
bool CellAttributeHelper::RegisteredAttrSetLess::operator()(const OUString* lhs, const ScPatternAttr* rhs) const
{
@@ -283,7 +283,7 @@ bool CellAttributeHelper::RegisteredAttrSetLess::operator()(const OUString* lhs,
return true;
if (cmp > 0)
return false;
- return static_cast<const ScPatternAttr*>(nullptr) < rhs;
+ return true;
}