diff options
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 ); |