summaryrefslogtreecommitdiff
path: root/connectivity/source/manager/mdrivermanager.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 10:42:52 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:51 +0200
commitef268562602a4bef0e128f95beaef9732ac00c7d (patch)
treeb36a4a773a86c84833a48f7eeec50dc3e76b0729 /connectivity/source/manager/mdrivermanager.cxx
parent216ffb038f4a2f43286d96b83a64346a2351c8c1 (diff)
loplugin:passstuffbyref in connectivity
Change-Id: I751977ecc1b532f72dd5673767471cb0a2cdbd06
Diffstat (limited to 'connectivity/source/manager/mdrivermanager.cxx')
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index d6a5102a429f..8d1e24bff9e3 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -137,17 +137,17 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
};
/// an STL functor which extracts a SdbcDriver from a DriverAccess
- struct ExtractDriverFromAccess : public ::std::unary_function< DriverAccess, Reference<XDriver> >
+ struct ExtractDriverFromAccess : public ::std::unary_function< DriverAccess, const Reference<XDriver>& >
{
- Reference<XDriver> operator()( const DriverAccess& _rAccess ) const
+ const Reference<XDriver>& operator()( const DriverAccess& _rAccess ) const
{
return _rAccess.xDriver;
}
};
- struct ExtractDriverFromCollectionElement : public ::std::unary_function< DriverCollection::value_type, Reference<XDriver> >
+ struct ExtractDriverFromCollectionElement : public ::std::unary_function< DriverCollection::value_type, const Reference<XDriver>& >
{
- Reference<XDriver> operator()( const DriverCollection::value_type& _rElement ) const
+ const Reference<XDriver>& operator()( const DriverCollection::value_type& _rElement ) const
{
return _rElement.second;
}