mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T304, array index fix if "7za.exe" is not available
This commit is contained in:
@@ -108,6 +108,14 @@ namespace BlackMisc
|
||||
return s.trimmed();
|
||||
}
|
||||
|
||||
//! Safe "at" function, returns empty string if index does not exists
|
||||
inline const QString &safeAt(const QStringList &stringList, int index)
|
||||
{
|
||||
if (stringList.size() > index) { return stringList.at(index); }
|
||||
static const QString empty;
|
||||
return empty;
|
||||
}
|
||||
|
||||
//! String with digits only
|
||||
inline bool isDigitsOnlyString(const QString &testString)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user