diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 14:05:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-13 11:39:21 +0000 |
commit | 414ede0435645a2ebf8f1476435b6ec3bb248f33 (patch) | |
tree | 97f4fc1f1f3a3b9c077ae11348baa6fed6852f9b /sc/inc/addincol.hxx | |
parent | d05f56b160390022fdb0c21eed5e430440cd79ca (diff) |
new loplugin: useuniqueptr: sc part 1
Change-Id: Ic96fd3b56b2063df0882168a7d02725d3c50515f
Reviewed-on: https://gerrit.libreoffice.org/32961
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/addincol.hxx')
-rw-r--r-- | sc/inc/addincol.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/addincol.hxx b/sc/inc/addincol.hxx index 49d30b6a7b7a..79150156f969 100644 --- a/sc/inc/addincol.hxx +++ b/sc/inc/addincol.hxx @@ -88,7 +88,8 @@ private: css::uno::Reference< css::reflection::XIdlMethod> xFunction; css::uno::Any aObject; long nArgCount; - ScAddInArgDesc* pArgDescs; + std::unique_ptr<ScAddInArgDesc[]> + pArgDescs; long nCallerPos; sal_uInt16 nCategory; OString sHelpId; @@ -113,7 +114,7 @@ public: { return xFunction; } const css::uno::Any& GetObject() const { return aObject; } long GetArgumentCount() const { return nArgCount; } - const ScAddInArgDesc* GetArguments() const { return pArgDescs; } + const ScAddInArgDesc* GetArguments() const { return pArgDescs.get(); } long GetCallerPos() const { return nCallerPos; } const OUString& GetDescription() const { return aDescription; } sal_uInt16 GetCategory() const { return nCategory; } |