sc/inc/column.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c33fb83a62a4a155f11b082e6eb99d07403c3bb9 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Mon Mar 7 16:42:55 2022 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Tue Mar 8 00:57:40 2022 +0100 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.lu...@collabora.com> 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 )