Minor: Replace trailing ","
This commit is contained in:
parent
8402fde6b5
commit
543e712c62
@ -44,6 +44,7 @@ QString Utils::getLocation(QString fileName) {
|
|||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
location = line.mid(c+1);
|
location = line.mid(c+1);
|
||||||
if (!location.isEmpty()) {
|
if (!location.isEmpty()) {
|
||||||
|
location = location.replace(QChar(','), QString(""));
|
||||||
return location.replace(QChar('"'), QString("")).trimmed();
|
return location.replace(QChar('"'), QString("")).trimmed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -69,6 +70,7 @@ QString Utils::getTariffVersion(QString fileName) {
|
|||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
version = line.mid(c+1);
|
version = line.mid(c+1);
|
||||||
if (!version.isEmpty()) {
|
if (!version.isEmpty()) {
|
||||||
|
version = version.replace(QChar(','), QString(""));
|
||||||
return version.replace(QChar('"'), QString("")).trimmed();
|
return version.replace(QChar('"'), QString("")).trimmed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -94,6 +96,7 @@ QString Utils::getTariffInfo(QString fileName) {
|
|||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
info = line.mid(c+1);
|
info = line.mid(c+1);
|
||||||
if (!info.isEmpty()) {
|
if (!info.isEmpty()) {
|
||||||
|
info = info.replace(QChar(','), QString(""));
|
||||||
return info.replace(QChar('"'), QString("")).trimmed();
|
return info.replace(QChar('"'), QString("")).trimmed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user