summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-03-07 16:42:55 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-03-08 00:57:40 +0100
commitc33fb83a62a4a155f11b082e6eb99d07403c3bb9 (patch)
treefa63c46bb70838b3c84a8fb0d7fa09c80c0a8818 /sc
parent9aa1753aead0cf30387b26e6a50d2cce9392453f (diff)
remove pAttrArray nullptr checks
I missed these in 2e2e30d7ae445509e39ba47c1b248079f28c8d95. Change-Id: Ib0f75a2a0f018521e2468e83bdf41196f4b66c3e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131152 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/column.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 1b1ae1e6ab93..55cf70e09d7f 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -848,12 +848,12 @@ inline bool ScColumn::HasVisibleAttrIn( SCROW nStartRow, SCROW nEndRow ) const
inline SCSIZE ScColumn::GetPatternCount() const
{
- return pAttrArray ? pAttrArray->Count() : 0;
+ return pAttrArray->Count();
}
inline SCSIZE ScColumn::GetPatternCount( SCROW nRow1, SCROW nRow2 ) const
{
- return pAttrArray ? pAttrArray->Count( nRow1, nRow2 ) : 0;
+ return pAttrArray->Count( nRow1, nRow2 );
}
inline bool ScColumn::ReservePatternCount( SCSIZE nReserve )