Avoid global QString init in plugins

This workarounds issue with LTO with GCC #716
This commit is contained in:
Kacper Michajłow
2020-11-22 04:06:32 +01:00
parent cf70d9430f
commit f2d01b61d3
154 changed files with 302 additions and 411 deletions
@@ -38,8 +38,8 @@ const PluginDescriptor XTRXMIMOPlugin::m_pluginDescriptor = {
QStringLiteral("https://github.com/f4exb/sdrangel")
};
const QString XTRXMIMOPlugin::m_hardwareID = "XTRX";
const QString XTRXMIMOPlugin::m_deviceTypeID = XTRXMIMO_DEVICE_TYPE_ID;
static constexpr const char* const m_hardwareID = "XTRX";
static constexpr const char* const m_deviceTypeID = XTRXMIMO_DEVICE_TYPE_ID;
XTRXMIMOPlugin::XTRXMIMOPlugin(QObject* parent) :
QObject(parent)