summaryrefslogtreecommitdiffstats
path: root/include/vcl/txtattr.hxx
diff options
context:
space:
mode:
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;