diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-12 11:19:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-12 14:22:48 +0100 |
commit | 24731174015d04b7acb5041fdc836dd74f9313a1 (patch) | |
tree | e7b59b241c81f67d65b6c2fec37cc18a0965743b /l10ntools | |
parent | 703ad53629fb8f9002483142f906249e6160b4db (diff) |
coverity#1371323 Missing move assignment operator
Change-Id: I806cb0a1ede9c025c00fab58a3fd8835887c0a44
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/po.hxx | 1 | ||||
-rw-r--r-- | l10ntools/source/po.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx index ff8567e8db19..ce392593fc90 100644 --- a/l10ntools/inc/po.hxx +++ b/l10ntools/inc/po.hxx @@ -51,6 +51,7 @@ public: PoEntry( const PoEntry& rPo ); PoEntry& operator=( const PoEntry& rPo ); + PoEntry& operator=( PoEntry&& rPo ); OString const & getSourceFile() const; ///< Get name of file from which entry is extracted OString getGroupId() const; diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index c604577bfa08..81ecdcd553d7 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -283,6 +283,13 @@ PoEntry& PoEntry::operator=(const PoEntry& rPo) return *this; } +PoEntry& PoEntry::operator=(PoEntry&& rPo) +{ + m_pGenPo = std::move(rPo.m_pGenPo); + m_bIsInitialized = std::move(rPo.m_bIsInitialized); + return *this; +} + OString const & PoEntry::getSourceFile() const { assert( m_bIsInitialized ); |