mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #937 Resolved clazy warnings: pass-by-value/reference.
This commit is contained in:
@@ -166,7 +166,7 @@ namespace BlackMisc
|
||||
return url;
|
||||
}
|
||||
|
||||
bool CUrl::pathEndsWith(const QString ending, Qt::CaseSensitivity cs) const
|
||||
bool CUrl::pathEndsWith(const QString &ending, Qt::CaseSensitivity cs) const
|
||||
{
|
||||
return m_path.endsWith(ending, cs);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ namespace BlackMisc
|
||||
return QUrl::fromLocalFile(localFile);
|
||||
}
|
||||
|
||||
QString CUrl::stripQueryString(const QString query)
|
||||
QString CUrl::stripQueryString(const QString &query)
|
||||
{
|
||||
QString q(query.trimmed());
|
||||
if (q.startsWith("?") || q.startsWith("&"))
|
||||
|
||||
Reference in New Issue
Block a user