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
@@ -36,8 +36,8 @@ const PluginDescriptor TestMOSyncPlugin::m_pluginDescriptor = {
QStringLiteral("https://github.com/f4exb/sdrangel")
};
const QString TestMOSyncPlugin::m_hardwareID = "TestMOSync";
const QString TestMOSyncPlugin::m_deviceTypeID = TESTMOSYNC_DEVICE_TYPE_ID;
static constexpr const char* const m_hardwareID = "TestMOSync";
static constexpr const char* const m_deviceTypeID = TESTMOSYNC_DEVICE_TYPE_ID;
TestMOSyncPlugin::TestMOSyncPlugin(QObject* parent) :
QObject(parent)
@@ -45,9 +45,6 @@ public:
virtual DeviceSampleMIMO* createSampleMIMOPluginInstance(const QString& sourceId, DeviceAPI *deviceAPI);
virtual DeviceWebAPIAdapter* createDeviceWebAPIAdapter() const;
static const QString m_hardwareID;
static const QString m_deviceTypeID;
private:
static const PluginDescriptor m_pluginDescriptor;
};