summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/HStorageMap.cxx
diff options
context:
space:
mode:
authorJorenz Paragas <j.paragas.237@gmail.com>2015-08-01 12:36:33 -0700
committerNoel Grandin <noelgrandin@gmail.com>2015-08-03 07:02:57 +0000
commit37ec6cbeebc5dc9bf642eedcf45f0441edd3d610 (patch)
tree9ab7fc6c7c7f6a6ece96fa54cd6d66f6bc7b2e79 /connectivity/source/drivers/hsqldb/HStorageMap.cxx
parent4a2e0fa708bb00d35febe9e8939dcc0c2197e2f4 (diff)
tdf#91112: pass by const reference to lambdas
Since the function returned by o3tl::compose1 had its parameter passed by const reference, the same should be done for the lambda expressions that replace o3tl::compose1. I overlooked this detail in my previous commits. Change-Id: I0db5eec4e74d4835e786742ee6de3805215f377f Reviewed-on: https://gerrit.libreoffice.org/17465 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/hsqldb/HStorageMap.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/HStorageMap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HStorageMap.cxx b/connectivity/source/drivers/hsqldb/HStorageMap.cxx
index dd84f849ec72..321a12942d7b 100644
--- a/connectivity/source/drivers/hsqldb/HStorageMap.cxx
+++ b/connectivity/source/drivers/hsqldb/HStorageMap.cxx
@@ -171,7 +171,7 @@ namespace connectivity
TStorages& rMap = lcl_getStorageMap();
// check if the storage is already in our map
TStorages::iterator aFind = ::std::find_if(rMap.begin(),rMap.end(),
- [&_xStorage] (TStorages::value_type storage) {
+ [&_xStorage] (const TStorages::value_type& storage) {
// TStoragePair (second) -> TStorageURLPair (first) -> uno::Reference<XStorage> (first)
return storage.second.first.first == _xStorage;
});
@@ -203,7 +203,7 @@ namespace connectivity
TStorages& rMap = lcl_getStorageMap();
// check if the storage is already in our map
TStorages::iterator aFind = ::std::find_if(rMap.begin(),rMap.end(),
- [&_xStorage] (TStorages::value_type storage) {
+ [&_xStorage] (const TStorages::value_type& storage) {
// TStoragePair (second) -> TStorageURLPair (first) -> uno::Reference<XStorage> (first)
return storage.second.first.first == _xStorage;
});