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 /editeng | |
parent | 46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff) |
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/qa/items/borderline_test.cxx | 4 | ||||
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/qa/items/borderline_test.cxx b/editeng/qa/items/borderline_test.cxx index b97a41432978..58a46ffc8b01 100644 --- a/editeng/qa/items/borderline_test.cxx +++ b/editeng/qa/items/borderline_test.cxx @@ -32,12 +32,12 @@ CPPUNIT_NS_BEGIN template<> struct assertion_traits<SvxBorderStyle> { - static bool equal( const SvxBorderStyle& x, const SvxBorderStyle& y ) + static bool equal( SvxBorderStyle x, SvxBorderStyle y ) { return x == y; } - static std::string toString( const SvxBorderStyle& x ) + static std::string toString( SvxBorderStyle x ) { OStringStream ost; ost << static_cast<unsigned int>(x); diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index f17996fd4230..56669b5e67ce 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -880,7 +880,7 @@ namespace accessibility { const PropertyValue* pValues; explicit IndexCompare( const PropertyValue* pVals ) : pValues(pVals) {} - bool operator() ( const sal_Int32& a, const sal_Int32& b ) const + bool operator() ( sal_Int32 a, sal_Int32 b ) const { return pValues[a].Name < pValues[b].Name; } |