Kaydet (Commit) ca49ea41 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: I3c9be2a7e192fea7c415721872a803659a300282
üst ba00a4d2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment