diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 14:26:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-13 08:34:03 +0000 |
commit | a706bb06d5326e7a997dd1d71f3f947bd0ad28e6 (patch) | |
tree | 8ac34dea4e7e4106d3adbccc6a604b611928ffbe /sw/inc/list.hxx | |
parent | 8c73acd101c80a4479f25e35278a451dc3c4b22e (diff) |
new loplugin: useuniqueptr: sw part 1
Change-Id: I2bc55634e80976951ede768c97fbc4b7c4eda46c
Reviewed-on: https://gerrit.libreoffice.org/32963
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/list.hxx')
-rw-r--r-- | sw/inc/list.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/list.hxx b/sw/inc/list.hxx index 2c3daf7d981a..d3ef07c8ea4c 100644 --- a/sw/inc/list.hxx +++ b/sw/inc/list.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SW_INC_LIST_HXX #include <rtl/ustring.hxx> +#include <memory> class SwNumRule; class SwNodes; @@ -57,7 +58,7 @@ class SwList SwList( const SwList& ) = delete; SwList& operator=( const SwList& ) = delete; - SwListImpl* mpListImpl; + std::unique_ptr<SwListImpl> mpListImpl; }; #endif // INCLUDED_SW_INC_LIST_HXX |