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/markarr.hxx | |
parent | make this a tiny bit less unreadable (diff) | |
download | core-414ede0435645a2ebf8f1476435b6ec3bb248f33.tar.gz core-414ede0435645a2ebf8f1476435b6ec3bb248f33.zip |
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/markarr.hxx')
-rw-r--r-- | sc/inc/markarr.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/inc/markarr.hxx b/sc/inc/markarr.hxx index 0fd826cad395..a88dd7683e1b 100644 --- a/sc/inc/markarr.hxx +++ b/sc/inc/markarr.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SC_INC_MARKARR_HXX #include "address.hxx" +#include <memory> #define SC_MARKARRAY_DELTA 4 @@ -32,9 +33,9 @@ struct ScMarkEntry class ScMarkArray { - SCSIZE nCount; - SCSIZE nLimit; - ScMarkEntry* pData; + SCSIZE nCount; + SCSIZE nLimit; + std::unique_ptr<ScMarkEntry[]> pData; friend class ScMarkArrayIter; friend class ScDocument; // for FillInfo |