mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
use "%" for string-concatenation
Qt-Docs says it's less memory-usage...
This commit is contained in:
@@ -1141,7 +1141,7 @@ ElementsLocation QETProject::importElement(ElementsLocation &location)
|
||||
do
|
||||
{
|
||||
a++;
|
||||
QString new_path = parent_path + "/" + name_ + QString::number(a) + ".elmt";
|
||||
QString new_path = parent_path % "/" % name_ % QString::number(a) % ".elmt";
|
||||
loc = ElementsLocation (new_path);
|
||||
} while (loc.exist());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user