mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Fixed function "endsStringWithNameOrSymbol" to "const"
This commit is contained in:
committed by
Roland Winklmeier
parent
6b80991c94
commit
740de9786f
@@ -291,7 +291,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
//! Does a string end with name or symbol? E.g. 3meter, 3m, 3deg
|
||||
bool endsStringWithNameOrSymbol(const QString &candidate, Qt::CaseSensitivity cs = Qt::CaseSensitive)
|
||||
bool endsStringWithNameOrSymbol(const QString &candidate, Qt::CaseSensitivity cs = Qt::CaseSensitive) const
|
||||
{
|
||||
const QString c = candidate.trimmed();
|
||||
return c.endsWith(this->getName(false), cs) || c.endsWith(this->getName(true)) ||
|
||||
|
||||
Reference in New Issue
Block a user