CAM: Use QStringLiteral
This commit is contained in:
@@ -84,12 +84,12 @@ private:
|
||||
try {
|
||||
std::string path = App::Application::getHomePath();
|
||||
path += "Mod/CAM/Path/Post/scripts/";
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QString::fromLatin1("*_pre.py"));
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QStringLiteral("*_pre.py"));
|
||||
std::string cMacroPath =
|
||||
App::GetApplication()
|
||||
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/Macro")
|
||||
->GetASCII("MacroPath", App::Application::getUserMacroDir().c_str());
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QString::fromLatin1("*_pre.py"));
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QStringLiteral("*_pre.py"));
|
||||
QFileInfoList list = dir1.entryInfoList();
|
||||
list << dir2.entryInfoList();
|
||||
std::vector<std::string> scripts;
|
||||
@@ -116,7 +116,7 @@ private:
|
||||
for (int i = 0; i < list.size(); ++i) {
|
||||
QFileInfo fileInfo = list.at(i);
|
||||
if (fileInfo.baseName().toStdString() == processor) {
|
||||
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("scripts"))) {
|
||||
if (fileInfo.absoluteFilePath().contains(QStringLiteral("scripts"))) {
|
||||
pre << "from Path.Post.scripts import " << processor;
|
||||
}
|
||||
else {
|
||||
@@ -157,12 +157,12 @@ private:
|
||||
try {
|
||||
std::string path = App::Application::getHomePath();
|
||||
path += "Mod/CAM/Path/Post/scripts/";
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QString::fromLatin1("*_pre.py"));
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QStringLiteral("*_pre.py"));
|
||||
std::string cMacroPath =
|
||||
App::GetApplication()
|
||||
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/Macro")
|
||||
->GetASCII("MacroPath", App::Application::getUserMacroDir().c_str());
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QString::fromLatin1("*_pre.py"));
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QStringLiteral("*_pre.py"));
|
||||
QFileInfoList list = dir1.entryInfoList();
|
||||
list << dir2.entryInfoList();
|
||||
std::vector<std::string> scripts;
|
||||
@@ -200,7 +200,7 @@ private:
|
||||
for (int i = 0; i < list.size(); ++i) {
|
||||
QFileInfo fileInfo = list.at(i);
|
||||
if (fileInfo.baseName().toStdString() == processor) {
|
||||
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("scripts"))) {
|
||||
if (fileInfo.absoluteFilePath().contains(QStringLiteral("scripts"))) {
|
||||
pre << "from Path.Post.scripts import " << processor;
|
||||
}
|
||||
else {
|
||||
@@ -242,12 +242,12 @@ private:
|
||||
|
||||
std::string path = App::Application::getHomePath();
|
||||
path += "Mod/CAM/Path/Post/scripts/";
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QString::fromLatin1("*_post.py"));
|
||||
QDir dir1(QString::fromUtf8(path.c_str()), QStringLiteral("*_post.py"));
|
||||
std::string cMacroPath =
|
||||
App::GetApplication()
|
||||
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/Macro")
|
||||
->GetASCII("MacroPath", App::Application::getUserMacroDir().c_str());
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QString::fromLatin1("*_post.py"));
|
||||
QDir dir2(QString::fromUtf8(cMacroPath.c_str()), QStringLiteral("*_post.py"));
|
||||
QFileInfoList list = dir1.entryInfoList();
|
||||
list << dir2.entryInfoList();
|
||||
std::vector<std::string> scripts;
|
||||
@@ -288,7 +288,7 @@ private:
|
||||
for (int i = 0; i < list.size(); ++i) {
|
||||
QFileInfo fileInfo = list.at(i);
|
||||
if (fileInfo.baseName().toStdString() == processor) {
|
||||
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("scripts"))) {
|
||||
if (fileInfo.absoluteFilePath().contains(QStringLiteral("scripts"))) {
|
||||
pre << "from Path.Post.scripts import " << processor;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user