summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-26 11:47:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-27 09:54:44 +0200
commitc91f8e55fa9a335a4cc10f70e95e8a60a658c13b (patch)
tree22ef91f2df3a1f8c6ddf4059fa19c39d2aa0bc94 /l10ntools/inc
parent0f87f895380833084b64145c686f0ba5993737ca (diff)
loplugin:useuniqueptr in MergeDataHashMap
Change-Id: I263c187bab997b6ab929ca04788214d7418cb449 Reviewed-on: https://gerrit.libreoffice.org/51928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/export.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 0ed0f45c5175..5a9389ff7d19 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -151,7 +151,7 @@ class MergeData;
class MergeDataHashMap
{
private:
- typedef std::unordered_map<OString, MergeData*> HashMap_t;
+ typedef std::unordered_map<OString, std::unique_ptr<MergeData>> HashMap_t;
public:
MergeDataHashMap()
@@ -165,7 +165,7 @@ class MergeDataHashMap
typedef HashMap_t::iterator iterator;
typedef HashMap_t::const_iterator const_iterator;
- std::pair<iterator,bool> insert(const OString& rKey, MergeData* pMergeData);
+ std::pair<iterator,bool> insert(const OString& rKey, std::unique_ptr<MergeData> pMergeData);
iterator const & find(const OString& rKey);
iterator begin() {return m_aHashMap.begin();}