diff options
author | Aleksas Pantechovskis <alex.pantec@gmail.com> | 2016-03-09 14:27:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-10 08:03:17 +0000 |
commit | 50336412f775af154509d67b1ebbdb4b5feb147b (patch) | |
tree | eadb37cfda36b5cffa571800a9baf8e69780ef87 /include | |
parent | 3a8844752c22e18d27aa310ae859f8cb660865b9 (diff) |
tdf#89329 Use std::unique_ptr for pImpl in svparser
Change-Id: Ia791bade1a1f9d27a48994f8bb380ffec50e23bb
Reviewed-on: https://gerrit.libreoffice.org/23072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/svparser.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svtools/svparser.hxx b/include/svtools/svparser.hxx index cfbd1152a625..527c192fc35f 100644 --- a/include/svtools/svparser.hxx +++ b/include/svtools/svparser.hxx @@ -27,6 +27,7 @@ #include <rtl/textenc.h> #include <rtl/ustring.hxx> #include <vector> +#include <memory> struct SvParser_Impl; class SvStream; @@ -51,7 +52,7 @@ protected: sal_uLong nlLineNr; // current line number sal_uLong nlLinePos; // current column number - SvParser_Impl *pImplData; // internal data + std::unique_ptr<SvParser_Impl> pImplData; // internal data long nTokenValue; // additional value (RTF) bool bTokenHasValue; // indicates whether nTokenValue is valid SvParserState eState; // status also in derived classes @@ -230,7 +231,7 @@ public: class SVT_DLLPUBLIC SvKeyValueIterator : public SvRefBase { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; public: /** Construction/Destruction. |