summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/worksheethelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 10:54:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 11:04:11 +0100
commit1d10db1003f092f48ed09a0d45994f7481b96d84 (patch)
tree5f73a2450b5bda6cbd1becfba3f013e45b6d67b3 /sc/source/filter/oox/worksheethelper.cxx
parent9aeff6adce7287f7e85bc47ac9c418b93351e3d4 (diff)
loplugin:makeshared in sc
Change-Id: Ie287b5c11a1276c56f416f17ea69cddd5992b4a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87326 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox/worksheethelper.cxx')
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx
index 5c0c713281be..3f2fd625b575 100644
--- a/sc/source/filter/oox/worksheethelper.cxx
+++ b/sc/source/filter/oox/worksheethelper.cxx
@@ -1370,7 +1370,7 @@ ScDocument& WorksheetHelper::getScDocument()
/*static*/ WorksheetGlobalsRef WorksheetHelper::constructGlobals( const WorkbookHelper& rHelper,
const ISegmentProgressBarRef& rxProgressBar, WorksheetType eSheetType, SCTAB nSheet )
{
- WorksheetGlobalsRef xSheetGlob( new WorksheetGlobals( rHelper, rxProgressBar, eSheetType, nSheet ) );
+ WorksheetGlobalsRef xSheetGlob = std::make_shared<WorksheetGlobals>( rHelper, rxProgressBar, eSheetType, nSheet );
if( !xSheetGlob->isValidSheet() )
xSheetGlob.reset();
return xSheetGlob;