summaryrefslogtreecommitdiff
path: root/extensions/source/abpilot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 13:54:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 15:43:11 +0200
commitdd5dc5fa113b2e346d18fa2edaeea2347e4eb9f9 (patch)
tree4346402ebfad8c96cfafbde6736d077456fdd90e /extensions/source/abpilot
parentebb636473f6813a151dda07e4c2ae0960e684b2b (diff)
loplugin:moveparam in extensions
Change-Id: Ibbf0fff9a3540d4f723b91e2979e4465648ff203 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123385 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r--extensions/source/abpilot/abspilot.cxx2
-rw-r--r--extensions/source/abpilot/fieldmappingimpl.cxx5
-rw-r--r--extensions/source/abpilot/fieldmappingimpl.hxx2
3 files changed, 3 insertions, 6 deletions
diff --git a/extensions/source/abpilot/abspilot.cxx b/extensions/source/abpilot/abspilot.cxx
index 5600e819fb07..0a5cba073f0b 100644
--- a/extensions/source/abpilot/abspilot.cxx
+++ b/extensions/source/abpilot/abspilot.cxx
@@ -157,7 +157,7 @@ namespace abp
addressconfig::writeTemplateAddressSource( getORB(), m_aSettings.bRegisterDataSource ? m_aSettings.sRegisteredDataSourceName : m_aSettings.sDataSourceName, m_aSettings.sSelectedTable );
// 4. write the field mapping
- fieldmapping::writeTemplateAddressFieldMapping( getORB(), m_aSettings.aFieldMapping );
+ fieldmapping::writeTemplateAddressFieldMapping( getORB(), std::map(m_aSettings.aFieldMapping) );
}
void OAddressBookSourcePilot::implCleanup()
diff --git a/extensions/source/abpilot/fieldmappingimpl.cxx b/extensions/source/abpilot/fieldmappingimpl.cxx
index 04fa95028b18..43a75cf19ee4 100644
--- a/extensions/source/abpilot/fieldmappingimpl.cxx
+++ b/extensions/source/abpilot/fieldmappingimpl.cxx
@@ -204,11 +204,8 @@ namespace abp
}
- void writeTemplateAddressFieldMapping( const Reference< XComponentContext >& _rxContext, const MapString2String& _rFieldAssignment )
+ void writeTemplateAddressFieldMapping( const Reference< XComponentContext >& _rxContext, MapString2String&& aFieldAssignment )
{
- // want to have a non-const map for easier handling
- MapString2String aFieldAssignment( _rFieldAssignment );
-
// access the configuration information which the driver uses for determining its column names
// create a config node for this
diff --git a/extensions/source/abpilot/fieldmappingimpl.hxx b/extensions/source/abpilot/fieldmappingimpl.hxx
index d26172dfdb16..e4a2dd1c9649 100644
--- a/extensions/source/abpilot/fieldmappingimpl.hxx
+++ b/extensions/source/abpilot/fieldmappingimpl.hxx
@@ -77,7 +77,7 @@ namespace abp
*/
void writeTemplateAddressFieldMapping(
const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
- const MapString2String& _rFieldAssignment
+ MapString2String&& _rFieldAssignment
);