Help: Fix a readability-simplify-boolean-expr

Change-Id: I06006091b0e3b1c6b38851907a9e69f1c3c2fc04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-10-31 16:21:53 +01:00
parent 43e40f21a7
commit d13f7331b8

View File

@@ -544,12 +544,9 @@ void LocalHelpManager::updateFilterModel()
bool LocalHelpManager::canOpenOnlineHelp(const QUrl &url)
{
const QString address = url.toString();
if (address.startsWith("qthelp://org.qt-project.")
return address.startsWith("qthelp://org.qt-project.")
|| address.startsWith("qthelp://com.nokia.")
|| address.startsWith("qthelp://com.trolltech.")) {
return true;
}
return false;
|| address.startsWith("qthelp://com.trolltech.");
}
bool LocalHelpManager::openOnlineHelp(const QUrl &url)