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 /sfx2 | |
parent | 46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff) |
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index f382ff321e40..d820d49bb092 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -874,7 +874,7 @@ std::shared_ptr<const SfxFilter> SfxFilterMatcherIter::Next() using given separator ---------------------------------------------------------------*/ OUString implc_convertStringlistToString( const uno::Sequence< OUString >& lList , - const sal_Unicode& cSeparator, + sal_Unicode cSeparator, const OUString& sPrefix ) { OUStringBuffer sString ( 1000 ) ; diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 41224d5a1bf0..41a87402527f 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -101,7 +101,7 @@ class SearchView_Keyword public: SearchView_Keyword (const OUString &rKeyword, FILTER_APPLICATION App) - : maKeyword(rKeyword), meApp(App) + : maKeyword(rKeyword.toAsciiLowerCase()), meApp(App) {} bool operator() (const TemplateItemProperties &rItem) @@ -131,13 +131,11 @@ public: return bRet && MatchSubstring(rItem.aName); } - bool MatchSubstring( OUString sItemName ) + bool MatchSubstring( OUString const & sItemName ) { if(maKeyword.isEmpty()) return false; - sItemName = sItemName.toAsciiLowerCase(); - maKeyword = maKeyword.toAsciiLowerCase(); - if(sItemName.indexOf(maKeyword) >= 0) + if(sItemName.toAsciiLowerCase().indexOf(maKeyword) >= 0) return true; return false; } |