summaryrefslogtreecommitdiff
path: root/include/vcl/txtattr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 09:48:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-13 06:49:23 +0000
commite8b49f09074fe184374bee5062715357427ae044 (patch)
treeb9cf1f5e3d7ab8b98345a512b6ddb0da42fe2919 /include/vcl/txtattr.hxx
parent5e0e27e758e6f7fa325f36e6e51540e10bab0fdc (diff)
new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec Reviewed-on: https://gerrit.libreoffice.org/32948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/txtattr.hxx')
-rw-r--r--include/vcl/txtattr.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/txtattr.hxx b/include/vcl/txtattr.hxx
index cab94b248e0b..a02ef5850446 100644
--- a/include/vcl/txtattr.hxx
+++ b/include/vcl/txtattr.hxx
@@ -25,6 +25,7 @@
#include <tools/debug.hxx>
#include <vcl/vclenum.hxx>
#include <vcl/dllapi.h>
+#include <memory>
namespace vcl { class Font; }
@@ -129,7 +130,8 @@ public:
class TextCharAttrib
{
private:
- TextAttrib* mpAttr;
+ std::unique_ptr<TextAttrib>
+ mpAttr;
sal_Int32 mnStart;
sal_Int32 mnEnd;