From 4d49c9601c9b3e26a336e08e057d299895683480 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Jun 2016 17:14:34 +0200 Subject: Let loplugin:passstuffbyref also look at fn defn not preceded by any decl Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4 --- include/dbaccess/genericcontroller.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dbaccess') diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx index 5e9b792275f2..dae637c6bf0d 100644 --- a/include/dbaccess/genericcontroller.hxx +++ b/include/dbaccess/genericcontroller.hxx @@ -156,7 +156,7 @@ namespace dbaui struct CompareFeatureById : ::std::binary_function< SupportedFeatures::value_type, sal_Int32, bool > { - inline bool operator()( const SupportedFeatures::value_type& _aType, const sal_Int32& _nId ) const + inline bool operator()( const SupportedFeatures::value_type& _aType, sal_Int32 _nId ) const { return !!( _nId == _aType.second.nFeatureId ); } -- cgit