PQ parsing using "best guess" strategy as default plus renamings

This commit is contained in:
Klaus Basan
2018-12-20 03:59:46 +01:00
committed by Mat Sutcliffe
parent 4e1835b80d
commit d89b217e9b
13 changed files with 22 additions and 22 deletions

View File

@@ -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;
}