diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-07 08:09:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-07 09:16:00 +0000 |
commit | 359e0b47a0f96ffa595a0c38a5e5318d797812fe (patch) | |
tree | 3695eb961668945dda469fc659337cbdd8c89520 /tools/source | |
parent | cc84aaf70ac56092b32d1d329143eca0550dce12 (diff) |
loplugin:unuseddefaultparams
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795
Reviewed-on: https://gerrit.libreoffice.org/22971
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 083c8e2a1b32..1756bff71880 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -4010,10 +4010,9 @@ OUString INetURLObject::getName(sal_Int32 nIndex, bool bIgnoreFinalSlash, return decode(pSegBegin, p, eMechanism, eCharset); } -bool INetURLObject::setName(OUString const & rTheName, sal_Int32 nIndex, - bool bIgnoreFinalSlash) +bool INetURLObject::setName(OUString const & rTheName) { - SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash)); + SubString aSegment(getSegment(LAST_SEGMENT, true)); if (!aSegment.isPresent()) return false; @@ -4879,10 +4878,9 @@ OUString INetURLObject::GetLastName(DecodeMechanism eMechanism, return getName(LAST_SEGMENT, true, eMechanism, eCharset); } -OUString INetURLObject::GetFileExtension(DecodeMechanism eMechanism, - rtl_TextEncoding eCharset) const +OUString INetURLObject::GetFileExtension() const { - return getExtension(LAST_SEGMENT, false, eMechanism, eCharset); + return getExtension(LAST_SEGMENT, false); } void INetURLObject::CutLastName() |