summaryrefslogtreecommitdiff
path: root/include/vcl/metaact.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/metaact.hxx')
-rw-r--r--include/vcl/metaact.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx
index c7a26cd9727b..5041f3a954ee 100644
--- a/include/vcl/metaact.hxx
+++ b/include/vcl/metaact.hxx
@@ -445,7 +445,8 @@ private:
Point maStartPt;
OUString maStr;
- long* mpDXAry;
+ std::unique_ptr<long[]>
+ mpDXAry;
sal_Int32 mnIndex;
sal_Int32 mnLen;
@@ -473,7 +474,7 @@ public:
const OUString& GetText() const { return maStr; }
sal_Int32 GetIndex() const { return mnIndex; }
sal_Int32 GetLen() const { return mnLen; }
- long* GetDXArray() const { return mpDXAry; }
+ long* GetDXArray() const { return mpDXAry.get(); }
};
class VCL_DLLPUBLIC MetaStretchTextAction : public MetaAction