diff options
Diffstat (limited to 'include/vcl/metaact.hxx')
-rw-r--r-- | include/vcl/metaact.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 8fe4f1d43845..a5e939e4fd72 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -1433,7 +1433,8 @@ private: OString maComment; sal_Int32 mnValue; sal_uInt32 mnDataSize; - sal_uInt8* mpData; + std::unique_ptr<sal_uInt8[]> + mpData; SAL_DLLPRIVATE void ImplInitDynamicData( const sal_uInt8* pData, sal_uInt32 nDataSize ); @@ -1456,7 +1457,7 @@ public: const OString& GetComment() const { return maComment; } sal_Int32 GetValue() const { return mnValue; } sal_uInt32 GetDataSize() const { return mnDataSize; } - const sal_uInt8* GetData() const { return mpData; } + const sal_uInt8* GetData() const { return mpData.get(); } }; class VCL_DLLPUBLIC MetaLayoutModeAction : public MetaAction |