diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
commit | 4d49c9601c9b3e26a336e08e057d299895683480 (patch) | |
tree | 469e3c18c2167db45cffec0a21a99abda8406c54 /include | |
parent | 46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff) |
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/FValue.hxx | 20 | ||||
-rw-r--r-- | include/dbaccess/genericcontroller.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/templatedlg.hxx | 2 | ||||
-rw-r--r-- | include/xmloff/nmspmap.hxx | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index 21933c7100b5..55341f828e92 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -120,7 +120,7 @@ namespace connectivity operator=(_rRH); } - ORowSetValue(const float& _rRH) + ORowSetValue(float _rRH) :m_eTypeKind(css::sdbc::DataType::FLOAT) ,m_bNull(true) ,m_bBound(true) @@ -131,7 +131,7 @@ namespace connectivity operator=(_rRH); } - ORowSetValue(const sal_Int8& _rRH) + ORowSetValue(sal_Int8 _rRH) :m_eTypeKind(css::sdbc::DataType::TINYINT) ,m_bNull(true) ,m_bBound(true) @@ -142,7 +142,7 @@ namespace connectivity operator=(_rRH); } - ORowSetValue(const sal_uInt8& _rRH) + ORowSetValue(sal_uInt8 _rRH) :m_eTypeKind(css::sdbc::DataType::TINYINT) ,m_bNull(true) ,m_bBound(true) @@ -152,7 +152,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_Int16& _rRH) + ORowSetValue(sal_Int16 _rRH) :m_eTypeKind(css::sdbc::DataType::SMALLINT) ,m_bNull(true) ,m_bBound(true) @@ -162,7 +162,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_uInt16& _rRH) + ORowSetValue(sal_uInt16 _rRH) :m_eTypeKind(css::sdbc::DataType::SMALLINT) ,m_bNull(true) ,m_bBound(true) @@ -172,7 +172,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_Int32& _rRH) + ORowSetValue(sal_Int32 _rRH) :m_eTypeKind(css::sdbc::DataType::INTEGER) ,m_bNull(true) ,m_bBound(true) @@ -182,7 +182,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_uInt32& _rRH) + ORowSetValue(sal_uInt32 _rRH) :m_eTypeKind(css::sdbc::DataType::INTEGER) ,m_bNull(true) ,m_bBound(true) @@ -192,7 +192,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_Int64& _rRH) + ORowSetValue(sal_Int64 _rRH) :m_eTypeKind(css::sdbc::DataType::BIGINT) ,m_bNull(true) ,m_bBound(true) @@ -202,7 +202,7 @@ namespace connectivity m_aValue.m_pString = nullptr; operator=(_rRH); } - ORowSetValue(const sal_uInt64& _rRH) + ORowSetValue(sal_uInt64 _rRH) :m_eTypeKind(css::sdbc::DataType::BIGINT) ,m_bNull(true) ,m_bBound(true) @@ -213,7 +213,7 @@ namespace connectivity operator=(_rRH); } - ORowSetValue(const bool& _rRH) + ORowSetValue(bool _rRH) :m_eTypeKind(css::sdbc::DataType::BIT) ,m_bNull(true) ,m_bBound(true) 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 ); } diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index 3affc1b79b93..26e6959db8d6 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -194,7 +194,7 @@ public: return msSelectedCategory; }; - inline void SetSelectLabelText(OUString sText) const { + inline void SetSelectLabelText(OUString const & sText) const { mpSelectLabel->SetText(sText); }; diff --git a/include/xmloff/nmspmap.hxx b/include/xmloff/nmspmap.hxx index 82e1b8627b96..5f2bac1de514 100644 --- a/include/xmloff/nmspmap.hxx +++ b/include/xmloff/nmspmap.hxx @@ -52,7 +52,7 @@ public: struct uInt32lt { - bool operator()( const sal_uInt32 &r1, const sal_uInt32 &r2) const + bool operator()( sal_uInt32 r1, sal_uInt32 r2) const { return r1 < r2; } |