summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-07 08:35:12 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 08:25:33 +0200
commit9d307abeec2a80e59af0f0af10dc42d90cd7441a (patch)
treeab939f6c7d0d65d0419fbe305bbc1501f1faceb8 /include
parent12fb9096f562281c7ca4b7fed6a3342dac9a91b7 (diff)
new loplugin: defaultparams
find places where we do not need to be passing a parameter to a function, because that function has a default value which matches the value we are passing. Change-Id: I04d1fd6275204dd4925e6563282464f461123632
Diffstat (limited to 'include')
-rw-r--r--include/rtl/string.hxx2
-rw-r--r--include/rtl/ustring.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index 995fe7e39c80..b83930e1d2c2 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -737,7 +737,7 @@ public:
@since LibreOffice 4.0
*/
bool startsWith(OString const & str, OString * rest = 0) const {
- bool b = match(str, 0);
+ bool b = match(str);
if (b && rest != 0) {
*rest = copy(str.getLength());
}
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 9b0cfb45cc19..ee96da1722fc 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -1048,7 +1048,7 @@ public:
@since LibreOffice 4.0
*/
bool startsWith(OUString const & str, OUString * rest = 0) const {
- bool b = match(str, 0);
+ bool b = match(str);
if (b && rest != 0) {
*rest = copy(str.getLength());
}
@@ -1104,7 +1104,7 @@ public:
bool startsWithIgnoreAsciiCase(OUString const & str, OUString * rest = 0)
const
{
- bool b = matchIgnoreAsciiCase(str, 0);
+ bool b = matchIgnoreAsciiCase(str);
if (b && rest != 0) {
*rest = copy(str.getLength());
}