mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
PQ parsing using "best guess" strategy as default plus renamings
This commit is contained in:
committed by
Mat Sutcliffe
parent
4e1835b80d
commit
d89b217e9b
@@ -96,7 +96,7 @@ namespace BlackMisc
|
||||
const QString p = this->part(index);
|
||||
if (p.isEmpty()) { return false; }
|
||||
bool ok = false;
|
||||
CPqString::parseNumber(p, ok, CPqString::SeparatorsBestGuess);
|
||||
CPqString::parseNumber(p, ok, CPqString::SeparatorBestGuess);
|
||||
return ok;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace BlackMisc
|
||||
const QString p = this->part(index);
|
||||
if (p.isEmpty()) { return def; }
|
||||
bool ok = false;
|
||||
double d = CPqString::parseNumber(p, ok, CPqString::SeparatorsBestGuess);
|
||||
double d = CPqString::parseNumber(p, ok, CPqString::SeparatorBestGuess);
|
||||
return ok ? d : def;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user