diff options
Diffstat (limited to 'sc/source/core/data/autonamecache.cxx')
-rw-r--r-- | sc/source/core/data/autonamecache.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/autonamecache.cxx b/sc/source/core/data/autonamecache.cxx index bd30352f1d1f..a2be03c25796 100644 --- a/sc/source/core/data/autonamecache.cxx +++ b/sc/source/core/data/autonamecache.cxx @@ -24,8 +24,8 @@ #include <formulacell.hxx> #include <editutil.hxx> -ScAutoNameCache::ScAutoNameCache( ScDocument* pD ) : - pDoc( pD ), +ScAutoNameCache::ScAutoNameCache( ScDocument& rD ) : + rDoc( rD ), nCurrentTab( 0 ) // doesn't matter - aNames is empty { } @@ -49,7 +49,7 @@ const ScAutoNameAddresses& ScAutoNameCache::GetNameOccurrences( const OUString& ScAutoNameAddresses& rAddresses = aNames[rName]; - ScCellIterator aIter( pDoc, ScRange( 0, 0, nCurrentTab, pDoc->MaxCol(), pDoc->MaxRow(), nCurrentTab ) ); + ScCellIterator aIter( rDoc, ScRange( 0, 0, nCurrentTab, rDoc.MaxCol(), rDoc.MaxRow(), nCurrentTab ) ); for (bool bHasCell = aIter.first(); bHasCell; bHasCell = aIter.next()) { // don't check code length here, always use the stored result |