return true;
}
-bool QUrlPrivate::setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode)
+inline void QUrlPrivate::setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode)
{
sectionHasError &= ~Authority;
sectionIsPresent &= ~Authority;
password.clear();
host.clear();
port = -1;
- return true;
+ return;
}
int userInfoIndex = auth.indexOf(QLatin1Char('@'), from);
port = -1;
}
- return setHost(auth, from, qMin<uint>(end, colonIndex), mode) && !(sectionHasError & Port);
+ setHost(auth, from, qMin<uint>(end, colonIndex), mode);
}
void QUrlPrivate::setUserInfo(const QString &userInfo, int from, int end)
// the "end" parameters are like STL iterators: they point to one past the last valid element
bool setScheme(const QString &value, int len);
- bool setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode);
+ void setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode);
void setUserInfo(const QString &userInfo, int from, int end);
void setUserName(const QString &value, int from, int end);
void setPassword(const QString &value, int from, int end);