summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 16:00:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 10:16:35 +0200
commita9286f445d15207069799655ef59267d5d371c65 (patch)
treebfbea04c2e74c2a5eedce0f8ac75c68ca8a8cd86 /include
parentloplugin:useuniqueptr expand search for ranged-loop-delete (diff)
downloadcore-a9286f445d15207069799655ef59267d5d371c65.tar.gz
core-a9286f445d15207069799655ef59267d5d371c65.zip
loplugin:useuniqueptr in PPDParser
Change-Id: Iafd63c276d430ea2a08286921f593bc56587e71c
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ppdparser.hxx3
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 );