diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:58 +0200 |
commit | ca49ea419c5943bd830abd736c4acb239cc1f4bc (patch) | |
tree | 2fbd02515aeaa1ff7c85b13dd92007b05541acd5 /tools | |
parent | ba00a4d2afd6f21ec189743b41d5b4be2add0342 (diff) |
loplugin:defaultparams
Change-Id: I3c9be2a7e192fea7c415721872a803659a300282
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 115d6760fb71..d003b9d5bc8d 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -4974,7 +4974,7 @@ OUString INetURLObject::GetFull() const OUString INetURLObject::GetPath() const { INetURLObject aTemp(*this); - aTemp.removeSegment(LAST_SEGMENT); + aTemp.removeSegment(); aTemp.removeFinalSlash(); return aTemp.PathToFileName(); } @@ -4994,7 +4994,7 @@ void INetURLObject::SetName(OUString const & rTheName, rtl_TextEncoding eCharset) { INetURLObject aTemp(*this); - if (aTemp.removeSegment(LAST_SEGMENT) + if (aTemp.removeSegment() && aTemp.insertName(rTheName, false, LAST_SEGMENT, true, eMechanism, eCharset)) *this = aTemp; |