diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-22 12:16:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-22 15:16:27 +0200 |
commit | a5d2e06d444b486bb2695c9268681f044f27d599 (patch) | |
tree | c09a0887d33cb3054f76bae30d183a09f6bee2c0 /sc/source/ui/unoobj/cellsuno.cxx | |
parent | 5de1567e30d54fde33875d7c8301bf3d36d6f1cd (diff) |
pass ScDocShell by reference in ctor to indicate never initially null
Change-Id: I6b07f734aba06a643b6240562bb3e427e5c1e9ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134729
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 763ee12f7b24..c2ef70015d1f 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -6652,7 +6652,7 @@ uno::Reference<sheet::XDataPilotTables> SAL_CALL ScTableSheetObj::getDataPilotTa SolarMutexGuard aGuard; ScDocShell* pDocSh = GetDocShell(); if ( pDocSh ) - return new ScDataPilotTablesObj( pDocSh, GetTab_Impl() ); + return new ScDataPilotTablesObj(*pDocSh, GetTab_Impl()); OSL_FAIL("no document"); return nullptr; |