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 /include/tools/urlobj.hxx | |
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 'include/tools/urlobj.hxx')
-rw-r--r-- | include/tools/urlobj.hxx | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index e85d50f7f8e8..b127150739ce 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -327,9 +327,7 @@ public: inline bool GetNewAbsURL(OUString const & rTheRelURIRef, - INetURLObject * pTheAbsURIRef, - EncodeMechanism eMechanism = WAS_ENCODED, - rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8) + INetURLObject * pTheAbsURIRef) const; /** @descr If rTheRelURIRef cannot be converted to an absolute URL @@ -576,20 +574,12 @@ public: @param rTheName The new name. - @param nIndex The non-negative index of the segment, or LAST_SEGMENT - if addressing the last segment. - - @param bIgnoreFinalSlash If true, a final slash at the end of the - hierarchical path does not denote an empty segment, but is ignored. - @return True if the name has successfully been modified (and the resulting URI is still valid). If the path is not hierarchical, or the specified segment does not exist, false is returned. If false is returned, the object is not modified. */ - bool setName(OUString const & rTheName, - sal_Int32 nIndex = LAST_SEGMENT, - bool bIgnoreFinalSlash = true); + bool setName(OUString const & rTheName); /** Get the base of the name of a segment. @@ -922,18 +912,12 @@ public: /** Get the 'extension' of the last segment in the path. - @param eMechanism See the general discussion for get-methods. - - @param eCharset See the general discussion for get-methods. - @return For a hierarchical URL, everything after the first unencoded '.' in the last segment of the path. Note that this 'extension' may be empty. If the URL is not hierarchical, or if the last segment does not contain an unencoded '.', an empty string is returned. */ - OUString GetFileExtension(DecodeMechanism eMechanism = DECODE_TO_IURI, - rtl_TextEncoding eCharset - = RTL_TEXTENCODING_UTF8) const; + OUString GetFileExtension() const; inline bool Append(OUString const & rTheSegment, EncodeMechanism eMechanism = WAS_ENCODED, @@ -1264,15 +1248,13 @@ INetURLObject::smartRel2Abs(OUString const & rTheRelURIRef, } inline bool INetURLObject::GetNewAbsURL(OUString const & rTheRelURIRef, - INetURLObject * pTheAbsURIRef, - EncodeMechanism eMechanism, - rtl_TextEncoding eCharset) + INetURLObject * pTheAbsURIRef) const { INetURLObject aTheAbsURIRef; bool bWasAbsolute; if (!convertRelToAbs(rTheRelURIRef, false, aTheAbsURIRef, bWasAbsolute, - eMechanism, eCharset, false/*bIgnoreFragment*/, false, false, + WAS_ENCODED, RTL_TEXTENCODING_UTF8, false/*bIgnoreFragment*/, false, false, FSYS_DETECT)) return false; if (pTheAbsURIRef) |