From ca49ea419c5943bd830abd736c4acb239cc1f4bc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Oct 2015 17:51:58 +0200 Subject: loplugin:defaultparams Change-Id: I3c9be2a7e192fea7c415721872a803659a300282 --- tools/source/fsys/urlobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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; -- cgit