summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 13:54:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 15:43:23 +0200
commit071c117ba551e579962ff5b70f79cb7934d96c77 (patch)
tree48d185d8f4101215674e93ae64091251988f8a73
parentdd5dc5fa113b2e346d18fa2edaeea2347e4eb9f9 (diff)
loplugin:moveparam in writerfilter
Change-Id: Iabc09d0388da68ee5bb74c75125b8dd8d75a5a73 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123386 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx6
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.hxx2
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx6
3 files changed, 7 insertions, 7 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 644beef21e06..65550495b1e1 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1479,7 +1479,7 @@ void DomainMapper_Impl::CheckUnregisteredFrameConversion( )
RegisterFrameConversion(
rAppendContext.pLastParagraphProperties->GetStartingRange(),
rAppendContext.pLastParagraphProperties->GetEndingRange(),
- aFrameProperties );
+ std::move(aFrameProperties) );
}
catch( const uno::Exception& )
{
@@ -7505,13 +7505,13 @@ PageMar::PageMar()
void DomainMapper_Impl::RegisterFrameConversion(
uno::Reference< text::XTextRange > const& xFrameStartRange,
uno::Reference< text::XTextRange > const& xFrameEndRange,
- const std::vector<beans::PropertyValue>& rFrameProperties
+ std::vector<beans::PropertyValue>&& rFrameProperties
)
{
OSL_ENSURE(
m_aFrameProperties.empty() && !m_xFrameStartRange.is() && !m_xFrameEndRange.is(),
"frame properties not removed");
- m_aFrameProperties = rFrameProperties;
+ m_aFrameProperties = std::move(rFrameProperties);
m_xFrameStartRange = xFrameStartRange;
m_xFrameEndRange = xFrameEndRange;
}
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
index 9c3e25a6e072..b23a0b42416d 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
@@ -982,7 +982,7 @@ public:
void RegisterFrameConversion(css::uno::Reference<css::text::XTextRange> const& xFrameStartRange,
css::uno::Reference<css::text::XTextRange> const& xFrameEndRange,
- const std::vector<css::beans::PropertyValue>& aFrameProperties);
+ std::vector<css::beans::PropertyValue>&& aFrameProperties);
void ExecuteFrameConversion();
void AddNewRedline( sal_uInt32 sprmId );
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 1464f3ae4082..4e51aa0aecbb 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -254,9 +254,9 @@ struct ListCharStylePropertyMap_t
OUString sCharStyleName;
PropertyValueVector_t aPropertyValues;
- ListCharStylePropertyMap_t(const OUString& rCharStyleName, const PropertyValueVector_t& rPropertyValues):
+ ListCharStylePropertyMap_t(const OUString& rCharStyleName, PropertyValueVector_t&& rPropertyValues):
sCharStyleName( rCharStyleName ),
- aPropertyValues( rPropertyValues )
+ aPropertyValues( std::move(rPropertyValues) )
{}
};
@@ -1686,7 +1686,7 @@ OUString StyleSheetTable::getOrCreateCharStyle( PropertyValueVector_t& rCharProp
}
}
xCharStyles->insertByName( sListLabel, uno::makeAny( xStyle) );
- m_pImpl->m_aListCharStylePropertyVector.emplace_back( sListLabel, rCharProperties );
+ m_pImpl->m_aListCharStylePropertyVector.emplace_back( sListLabel, std::vector(rCharProperties) );
}
catch( const uno::Exception& )
{