diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-24 16:50:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-25 13:14:20 +0200 |
commit | 4467dc6685dbe2862da5eb54edb89c1711253812 (patch) | |
tree | fb57b72dc85ff9478622c65fa293b1af96d48adf /sc/inc/funcdesc.hxx | |
parent | 4d41b2e42fb91b99bd17b13f0f592978f4ccfba7 (diff) |
loplugin:useuniqueptr in sc
Change-Id: Ia647ef2dda2dd54a4958a7dc561a0fb86abdfd86
Reviewed-on: https://gerrit.libreoffice.org/41522
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/funcdesc.hxx')
-rw-r--r-- | sc/inc/funcdesc.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx index bb0361def4eb..feabadf9bb82 100644 --- a/sc/inc/funcdesc.hxx +++ b/sc/inc/funcdesc.hxx @@ -28,6 +28,7 @@ #include <sal/types.h> #include <rtl/ustring.hxx> #include <map> +#include <memory> #define MAX_FUNCCAT 12 /* maximum number of categories for functions */ #define LRU_MAX 10 /* maximal number of last recently used functions */ @@ -393,7 +394,7 @@ public: private: ScFunctionList* pFuncList; /**< list of all calc functions */ - std::vector<const ScFuncDesc*>* aCatLists[MAX_FUNCCAT]; /**< array of all categories, 0 is the cumulative ('All') category */ + std::unique_ptr<std::vector<const ScFuncDesc*>> aCatLists[MAX_FUNCCAT]; /**< array of all categories, 0 is the cumulative ('All') category */ mutable std::map< sal_uInt32, std::shared_ptr<ScFunctionCategory> > m_aCategories; /**< map of category pos to IFunctionCategory */ mutable std::vector<const ScFuncDesc*>::iterator pCurCatListIter; /**< position in current category */ mutable std::vector<const ScFuncDesc*>::iterator pCurCatListEnd; /**< end of current category */ |