diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 11:03:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-17 08:22:51 +0200 |
commit | 1b95eb30f6358a9ebdedee2888be8273120669c8 (patch) | |
tree | 45ddd96753d0fac4311529da5af61994dfd56181 /sc/source/filter/xml/XMLStylesExportHelper.hxx | |
parent | 7125c6798f94a8b7345372ba36dbabd89bab8820 (diff) |
loplugin:useuniqueptr in ScColumnRowStylesBase
Change-Id: I44e9cb38f57684930a94bd1f185e87a9605b65c2
Reviewed-on: https://gerrit.libreoffice.org/59225
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml/XMLStylesExportHelper.hxx')
-rw-r--r-- | sc/source/filter/xml/XMLStylesExportHelper.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.hxx b/sc/source/filter/xml/XMLStylesExportHelper.hxx index 6012a5b7e324..478e94d75f7f 100644 --- a/sc/source/filter/xml/XMLStylesExportHelper.hxx +++ b/sc/source/filter/xml/XMLStylesExportHelper.hxx @@ -205,16 +205,16 @@ public: class ScColumnRowStylesBase { - std::vector<OUString*> aStyleNames; + std::vector<OUString> aStyleNames; public: ScColumnRowStylesBase(); virtual ~ScColumnRowStylesBase(); virtual void AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields) = 0; - sal_Int32 AddStyleName(OUString* pString); + sal_Int32 AddStyleName(const OUString & rString); sal_Int32 GetIndexOfStyleName(const OUString& rString, const OUString& rPrefix); - OUString* GetStyleNameByIndex(const sal_Int32 nIndex); + OUString& GetStyleNameByIndex(const sal_Int32 nIndex); }; struct ScColumnStyle |