summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen8.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-04 15:35:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-05 11:43:27 +0200
commitb8335d6b5b6b0184ed7c5d141c6a956187bcf9cf (patch)
tree096a13386af2d34faed26b8ddd0f750483689743 /sc/source/core/data/documen8.cxx
parenteada59bd3383b1711f3a68030ad52c69746e810a (diff)
use std::unique_ptr for ScTable in ScDocument
Change-Id: Ic817fbd7953afe9007f9ec6071f53c8beca6dd18 Reviewed-on: https://gerrit.libreoffice.org/56949 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/documen8.cxx')
-rw-r--r--sc/source/core/data/documen8.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 32a1c2cd97cb..51f7c757c726 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -581,7 +581,7 @@ bool ScDocument::IdleCalcTextWidth() // true = try next again
if (!ValidTab(aScope.Tab()) || aScope.Tab() >= static_cast<SCTAB>(maTabs.size()) || !maTabs[aScope.Tab()])
aScope.setTab(0);
- ScTable* pTab = maTabs[aScope.Tab()];
+ ScTable* pTab = maTabs[aScope.Tab()].get();
ScStyleSheet* pStyle = static_cast<ScStyleSheet*>(aScope.getStylePool()->Find(pTab->aPageStyle, SfxStyleFamily::Page));
OSL_ENSURE( pStyle, "Missing StyleSheet :-/" );
@@ -668,7 +668,7 @@ bool ScDocument::IdleCalcTextWidth() // true = try next again
{
if ( bNewTab )
{
- pTab = maTabs[aScope.Tab()];
+ pTab = maTabs[aScope.Tab()].get();
pStyle = static_cast<ScStyleSheet*>(aScope.getStylePool()->Find(
pTab->aPageStyle, SfxStyleFamily::Page));