CAM: Use QStringLiteral
This commit is contained in:
@@ -62,9 +62,9 @@ TaskWidgetPathCompound::TaskWidgetPathCompound(ViewProviderPathCompound* Compoun
|
||||
for (std::vector<App::DocumentObject*>::const_iterator it = Paths.begin(); it != Paths.end();
|
||||
++it) {
|
||||
QString name = QString::fromLatin1((*it)->getNameInDocument());
|
||||
name += QString::fromLatin1(" (");
|
||||
name += QStringLiteral(" (");
|
||||
name += QString::fromUtf8((*it)->Label.getValue());
|
||||
name += QString::fromLatin1(")");
|
||||
name += QStringLiteral(")");
|
||||
ui->PathsList->addItem(name);
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ std::vector<std::string> TaskWidgetPathCompound::getList() const
|
||||
QListWidgetItem* item = ui->PathsList->item(i);
|
||||
QString name = item->text();
|
||||
QStringList result;
|
||||
result = name.split(QRegularExpression(QString::fromLatin1("\\s+")));
|
||||
result = name.split(QRegularExpression(QStringLiteral("\\s+")));
|
||||
std::cout << result[0].toStdString() << std::endl;
|
||||
names.push_back(result[0].toStdString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user