mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
use "%" for string-concatenation
Qt-Docs says it's less memory-usage...
This commit is contained in:
@@ -113,7 +113,7 @@ QByteArray ElementScaler(const QString &file_path, QWidget *parent)
|
||||
|
||||
QString ElementScalerDirPath()
|
||||
{
|
||||
return QETApp::dataDir() + "/binary";
|
||||
return QETApp::dataDir() % "/binary";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,11 +123,11 @@ QString ElementScalerDirPath()
|
||||
QString ElementScalerBinaryPath()
|
||||
{
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
||||
return ElementScalerDirPath() + QStringLiteral("/QET_ElementScaler.exe");
|
||||
return ElementScalerDirPath() % QStringLiteral("/QET_ElementScaler.exe");
|
||||
#elif defined(Q_OS_MACOS)
|
||||
return ElementScalerDirPath() + QStringLiteral("/./QET_ElementScaler");
|
||||
return ElementScalerDirPath() % QStringLiteral("/./QET_ElementScaler");
|
||||
#else
|
||||
return ElementScalerDirPath() + QStringLiteral("/QET_ElementScaler");
|
||||
return ElementScalerDirPath() % QStringLiteral("/QET_ElementScaler");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user