summaryrefslogtreecommitdiff
path: root/include/tools/urlobj.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/urlobj.hxx')
-rw-r--r--include/tools/urlobj.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 309690048a49..94e22af5a159 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -1102,7 +1102,7 @@ private:
// Query:
- bool clearQuery();
+ void clearQuery();
bool setQuery(
OUString const & rTheQuery,
@@ -1298,9 +1298,12 @@ inline bool INetURLObject::SetParam(OUString const & rTheQuery,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)
{
- return rTheQuery.isEmpty() ?
- clearQuery() :
- setQuery(rTheQuery, eMechanism, eCharset);
+ if (rTheQuery.isEmpty())
+ {
+ clearQuery();
+ return false;
+ }
+ return setQuery(rTheQuery, eMechanism, eCharset);
}
inline bool INetURLObject::SetMark(OUString const & rTheFragment,