diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-16 14:16:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 06:41:54 +0000 |
commit | 90df5ee10727719aa1407ed4d1f06d7a790d6871 (patch) | |
tree | cac021b05b025d0e89c6beed20af4578cf34f437 /l10ntools | |
parent | d33d2a65a4ee54780ac005334bee176ddeec68fc (diff) |
new loplugin: useuniqueptr: jvmfwk..sax
Change-Id: I732e2e22c6f953f0982fbc8833453e7c23cf9d49
Reviewed-on: https://gerrit.libreoffice.org/33166
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/export.hxx | 4 | ||||
-rw-r--r-- | l10ntools/inc/po.hxx | 2 | ||||
-rw-r--r-- | l10ntools/source/merge.cxx | 1 | ||||
-rw-r--r-- | l10ntools/source/po.cxx | 1 |
4 files changed, 3 insertions, 5 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index 220259c02528..d04d85cf5a98 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -282,13 +282,13 @@ class MergeData public: OString sGID; OString sLID; - MergeEntrys* pMergeEntrys; + std::unique_ptr<MergeEntrys> pMergeEntrys; private: MergeDataHashMap::iterator m_aNextData; public: MergeData( const OString &rGID, const OString &rLID ); ~MergeData(); - MergeEntrys* GetMergeEntries() { return pMergeEntrys;} + MergeEntrys* GetMergeEntries() { return pMergeEntrys.get();} }; diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx index ce1443d26d14..52c644f176cb 100644 --- a/l10ntools/inc/po.hxx +++ b/l10ntools/inc/po.hxx @@ -78,7 +78,7 @@ class PoHeader { private: - GenPoEntry* m_pGenPo; + std::unique_ptr<GenPoEntry> m_pGenPo; bool m_bIsInitialized; public: diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index 9d04e16f40e3..955fca630d2e 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -207,7 +207,6 @@ MergeData::MergeData(const OString &rGID, MergeData::~MergeData() { - delete pMergeEntrys; } diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 81ecdcd553d7..87b78dd72467 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -419,7 +419,6 @@ PoHeader::PoHeader( const OString& rExtSrc ) PoHeader::~PoHeader() { - delete m_pGenPo; } PoOfstream::PoOfstream() |