summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table1.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-15 12:18:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-16 14:23:00 +0200
commit2ce8446ac40d5186c54ec26995b8e0989557cbe5 (patch)
treeef7a30639fce0d3dcf5f33dbe06e538e19ca4fdb /sc/source/core/data/table1.cxx
parentb49dada831604bbc929323719106c2474ef1102a (diff)
ScColumn::ScColumn never called with a null ScDocument*
Change-Id: I125d0e7571e3c34fbaab0fd024a67cbb518fdf64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102845 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/table1.cxx')
-rw-r--r--sc/source/core/data/table1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 331b5a7c3513..af5f34f5d3b0 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -305,7 +305,7 @@ ScTable::ScTable( ScDocument& rDoc, SCTAB nNewTab, const OUString& rNewName,
}
for (SCCOL k=0; k < aCol.size(); k++)
- aCol[k].Init( k, nTab, &rDocument, true );
+ aCol[k].Init( k, nTab, rDocument, true );
}
ScTable::~ScTable() COVERITY_NOEXCEPT_FALSE
@@ -2619,6 +2619,6 @@ void ScTable::CreateColumnIfNotExistsImpl( const SCCOL nScCol ) const
const SCCOL aOldColSize = aCol.size();
aCol.resize( rDocument.GetSheetLimits(), static_cast< size_t >( nScCol + 1 ) );
for (SCCOL i = aOldColSize; i <= nScCol; i++)
- aCol[i].Init( i, nTab, &rDocument, false );
+ aCol[i].Init( i, nTab, rDocument, false );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */