Remove instance() method from AudioManager
AudioManager is currently owned by qml, so it's highly confusing to have this routine, since it would give a pointer to another instance than the one owned by qml.
This commit is contained in:
parent
cfae4a9fa9
commit
1461c7e86c
@ -40,12 +40,6 @@ class AudioManager : public QObject
|
||||
public:
|
||||
explicit AudioManager(QObject *parent = nullptr);
|
||||
|
||||
static AudioManager &instance()
|
||||
{
|
||||
static AudioManager _instance;
|
||||
return _instance;
|
||||
}
|
||||
|
||||
~AudioManager() override;
|
||||
|
||||
Q_INVOKABLE static QString timeString(qint64 timeInMicroSeconds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user