mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-05 11:09:13 -04:00
Avoid global QString init in plugins
This commit is contained in:
parent
7dc0b53492
commit
5fdcdcc706
@ -42,8 +42,8 @@
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(VORDemod::MsgConfigureVORDemod, Message)
|
||||
|
||||
const QString VORDemod::m_channelIdURI = "sdrangel.channel.vordemod";
|
||||
const QString VORDemod::m_channelId = "VORDemod";
|
||||
const char * const VORDemod::m_channelIdURI = "sdrangel.channel.vordemod";
|
||||
const char * const VORDemod::m_channelId = "VORDemod";
|
||||
|
||||
VORDemod::VORDemod(DeviceAPI *deviceAPI) :
|
||||
ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSink),
|
||||
|
@ -71,8 +71,8 @@ public:
|
||||
virtual void stop();
|
||||
virtual bool handleMessage(const Message& cmd);
|
||||
|
||||
virtual void getIdentifier(QString& id) { id = m_channelId; }
|
||||
virtual const QString& getURI() const { return m_channelIdURI; }
|
||||
virtual void getIdentifier(QString& id) { id = objectName(); }
|
||||
virtual const QString& getURI() const { return getName(); }
|
||||
virtual void getTitle(QString& title) { title = m_settings.m_title; }
|
||||
virtual qint64 getCenterFrequency() const { return 0; }
|
||||
|
||||
@ -126,8 +126,8 @@ public:
|
||||
|
||||
uint32_t getNumberOfDeviceStreams() const;
|
||||
|
||||
static const QString m_channelIdURI;
|
||||
static const QString m_channelId;
|
||||
static const char * const m_channelIdURI;
|
||||
static const char * const m_channelId;
|
||||
|
||||
private:
|
||||
DeviceAPI *m_deviceAPI;
|
||||
|
Loading…
Reference in New Issue
Block a user