summaryrefslogtreecommitdiffstats
path: root/include/xmlscript/xmllib_imexp.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 09:11:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 11:28:41 +0000
commit968f6a7f0293c08a73807603f3cb294e4b50bad8 (patch)
treeace3fb5c260c8bbdc3f97c48499b5466f660a68c /include/xmlscript/xmllib_imexp.hxx
parentuse rtl::Reference in OClickableImageBaseModel (diff)
downloadcore-968f6a7f0293c08a73807603f3cb294e4b50bad8.tar.gz
core-968f6a7f0293c08a73807603f3cb294e4b50bad8.zip
new loplugin: useuniqueptr: unotools..xmlscript
Change-Id: I6966d44cff644112dd837adfe7d9c4f459457271 Reviewed-on: https://gerrit.libreoffice.org/33298 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmlscript/xmllib_imexp.hxx')
-rw-r--r--include/xmlscript/xmllib_imexp.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/xmlscript/xmllib_imexp.hxx b/include/xmlscript/xmllib_imexp.hxx
index 7c13f6a3d6e3..c54324219ecf 100644
--- a/include/xmlscript/xmllib_imexp.hxx
+++ b/include/xmlscript/xmllib_imexp.hxx
@@ -25,6 +25,8 @@
#include <xmlscript/xmlns.h>
#include <xmlscript/xmlscriptdllapi.h>
+#include <memory>
+
namespace xmlscript
{
@@ -46,7 +48,7 @@ struct XMLSCRIPT_DLLPUBLIC LibDescriptor
struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
{
- LibDescriptor* mpLibs;
+ std::unique_ptr<LibDescriptor[]> mpLibs;
sal_Int32 mnLibCount;
LibDescriptorArray() { mpLibs = nullptr; mnLibCount = 0; }