diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-19 09:11:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-19 11:28:41 +0000 |
commit | 968f6a7f0293c08a73807603f3cb294e4b50bad8 (patch) | |
tree | ace3fb5c260c8bbdc3f97c48499b5466f660a68c /include/xmlscript | |
parent | d3ff66999d924e832f8219c65ced0526f1a67f82 (diff) |
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')
-rw-r--r-- | include/xmlscript/xmllib_imexp.hxx | 4 |
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; } |