diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 16:00:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 10:16:35 +0200 |
commit | a9286f445d15207069799655ef59267d5d371c65 (patch) | |
tree | bfbea04c2e74c2a5eedce0f8ac75c68ca8a8cd86 /include | |
parent | 2e975301023354695e686812382b67c858774f67 (diff) |
loplugin:useuniqueptr in PPDParser
Change-Id: Iafd63c276d430ea2a08286921f593bc56587e71c
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ppdparser.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx index a3a04b86fdff..7cffed146ea7 100644 --- a/include/vcl/ppdparser.hxx +++ b/include/vcl/ppdparser.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_VCL_PPDPARSER_HXX #define INCLUDED_VCL_PPDPARSER_HXX +#include <memory> #include <unordered_map> #include <vector> @@ -172,7 +173,7 @@ private: const PPDKey* m_pFontList; // translations - PPDTranslator* m_pTranslator; + std::unique_ptr<PPDTranslator> m_pTranslator; PPDParser( const OUString& rFile ); PPDParser( const OUString& rFile, std::vector<PPDKey*> keys ); |