sc/source/core/data/patattr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8a348300094dcf9d59f94caa75d32453c45c8ee0 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri May 3 20:19:15 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat May 4 12:01:08 2024 +0200 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.mcnam...@collabora.com> 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; }