summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 14:21:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-04 10:07:00 +0200
commit5ad5f5ec62cc259f054b7343d7b4edce372e95e2 (patch)
tree3a7dc8956afc8841d7c7a30e37a7674496ce1557 /sc/source/ui/app
parent2bffccf7af58a4c076c597f847eed2068574e704 (diff)
make CreateStyleFamilies return std::unique_ptr
Change-Id: Ibb7bec9ede8045a6cea42c02f61f14ad36d2b434 Reviewed-on: https://gerrit.libreoffice.org/53730 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index fcf1e889bc05..d87fe6dfdc06 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2271,9 +2271,9 @@ bool ScModule::HasThesaurusLanguage( LanguageType nLang )
return bHasLang;
}
-SfxStyleFamilies* ScModule::CreateStyleFamilies()
+std::unique_ptr<SfxStyleFamilies> ScModule::CreateStyleFamilies()
{
- SfxStyleFamilies *pStyleFamilies = new SfxStyleFamilies;
+ std::unique_ptr<SfxStyleFamilies> pStyleFamilies(new SfxStyleFamilies);
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Para,
ScResId(STR_STYLE_FAMILY_CELL),