From 24731174015d04b7acb5041fdc836dd74f9313a1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 12 Sep 2016 11:19:39 +0100 Subject: coverity#1371323 Missing move assignment operator Change-Id: I806cb0a1ede9c025c00fab58a3fd8835887c0a44 --- l10ntools/inc/po.hxx | 1 + l10ntools/source/po.cxx | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'l10ntools') 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 ); -- cgit ='distro/cib/libreoffice-5-2'>distro/cib/libreoffice-5-2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Expand)Author
2013-08-27Make sure unittest/user/config/soffice.cfg/ exitsStephan Bergmann
2013-08-26Some cleanup and consolidation of the Impress layout work.Thorsten Behrens
2013-08-26Making changes to unit-test as well.Vishv Brahmbhatt
2013-08-26Deleting the required files.Vishv Brahmbhatt
2013-08-26Deleting useless unit-test files/directory.Vishv Brahmbhatt
2013-08-26Few name conventions changes.Vishv Brahmbhatt
2013-08-26Fixed a broken unit-test.Vishv Brahmbhatt
2013-08-26Made changes in the unit-test of other configuration filesVishv Brahmbhatt
2013-08-26Solved the unit-test problemVishv Brahmbhatt
2013-08-26Solved the identation problem related to "layoutlist.xml".Vishv Brahmbhatt
2013-08-26Adding new Slide Layouts Samples to "layoutlist.xml".Vishv Brahmbhatt
2013-08-26Working version of XML parser from configuration file pathVishv Brahmbhatt
2013-08-26Changing the XML parser with configuration file pathVishv Brahmbhatt
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks
2013-06-29remove OUString wrap for string literalsThomas Arnhold