use "%" for string-concatenation

Qt-Docs says it's less memory-usage...
This commit is contained in:
plc-user
2025-05-22 21:33:32 +02:00
parent 3a8e6b16f5
commit ad29893842
30 changed files with 167 additions and 167 deletions

View File

@@ -49,7 +49,7 @@ bool ConductorNumExport::toCsv()
//save in csv file in same directory as project by default
QString dir = m_project->currentDir();
if (dir.isEmpty()) dir = QETApp::documentDir();
QString name = dir + "/" + QObject::tr("numero_de_fileries_") + m_project->title() + ".csv";
QString name = dir % "/" % QObject::tr("numero_de_fileries_") % m_project->title() % ".csv";
// if(!name.endsWith(".csv")) {
// name += ".csv";
// }
@@ -105,7 +105,7 @@ QString ConductorNumExport::wiresNum() const
for (QString key : list)
{
for (int i=0; i<m_hash.value(key) ; ++i) {
csv.append(key + "\n");
csv.append(key % "\n");
}
}