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/appoptio.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/appoptio.hxx')
-rw-r--r-- | sc/inc/appoptio.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/inc/appoptio.hxx b/sc/inc/appoptio.hxx index 5bc668a24629..d3d6f5ba61eb 100644 --- a/sc/inc/appoptio.hxx +++ b/sc/inc/appoptio.hxx @@ -45,8 +45,8 @@ public: SvxZoomType GetZoomType() const { return eZoomType; } void SetSynchronizeZoom( bool bNew ) { bSynchronizeZoom = bNew; } bool GetSynchronizeZoom() const { return bSynchronizeZoom; } - sal_uInt16 GetLRUFuncListCount() const { return nLRUFuncCount; } - sal_uInt16* GetLRUFuncList() const { return pLRUList; } + sal_uInt16 GetLRUFuncListCount() const { return nLRUFuncCount; } + sal_uInt16* GetLRUFuncList() const { return pLRUList.get(); } void SetLRUFuncList( const sal_uInt16* pList, const sal_uInt16 nCount ); void SetStatusFunc( sal_uInt32 nNew ) { nStatusFunc = nNew; } @@ -83,7 +83,8 @@ public: private: FieldUnit eMetric; sal_uInt16 nLRUFuncCount; - sal_uInt16* pLRUList; + std::unique_ptr<sal_uInt16[]> + pLRUList; SvxZoomType eZoomType; sal_uInt16 nZoom; bool bSynchronizeZoom; |