summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/templatedlg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
commit4d49c9601c9b3e26a336e08e057d299895683480 (patch)
tree469e3c18c2167db45cffec0a21a99abda8406c54 /sfx2/source/doc/templatedlg.cxx
parent46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff)
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'sfx2/source/doc/templatedlg.cxx')
-rw-r--r--sfx2/source/doc/templatedlg.cxx8
1 files changed, 3 insertions, 5 deletions
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;
}