diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-16 08:42:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-17 08:38:53 +0200 |
commit | 60c08199f215ff7db335a692cbbcb72d1ac582d1 (patch) | |
tree | 94134d2f9bf9ace18bb88015260f6aad83793953 /include | |
parent | 76db1242ad6944dea42a09d3e5575a890bf6f7c2 (diff) |
loplugin:useuniqueptr in PPDParser
Change-Id: Id7ffe7967d2b6a7f394a4e096c04218c10aeda37
Reviewed-on: https://gerrit.libreoffice.org/57514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ppdparser.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx index b0bddea9acb1..b88d859840c8 100644 --- a/include/vcl/ppdparser.hxx +++ b/include/vcl/ppdparser.hxx @@ -124,10 +124,10 @@ class VCL_DLLPUBLIC PPDParser friend class CPDManager; friend class PPDCache; - typedef std::unordered_map< OUString, PPDKey* > hash_type; + typedef std::unordered_map< OUString, std::unique_ptr<PPDKey> > hash_type; typedef std::vector< PPDKey* > value_type; - void insertKey( const OUString& rKey, PPDKey* pKey ); + void insertKey( std::unique_ptr<PPDKey> pKey ); public: struct PPDConstraint { |