summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-12 11:19:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-12 14:22:48 +0100
commit24731174015d04b7acb5041fdc836dd74f9313a1 (patch)
treee7b59b241c81f67d65b6c2fec37cc18a0965743b /l10ntools
parent703ad53629fb8f9002483142f906249e6160b4db (diff)
coverity#1371323 Missing move assignment operator
Change-Id: I806cb0a1ede9c025c00fab58a3fd8835887c0a44
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/po.hxx1
-rw-r--r--l10ntools/source/po.cxx7
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 );