diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-05-27 15:11:25 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-05-28 12:26:26 +0200 |
commit | 17755bb32c8b30f38075f0963558f9a05460a1bb (patch) | |
tree | ca6714d532dff73032d2abd17da70395a8a847d4 /src/soundio | |
parent | 3f6f5b6169657f2b77f553024b6e4e33cbd119ae (diff) |
Use to QMultiHash/QMultiMap instead of QMap/QHash::insertMulti
Diffstat (limited to 'src/soundio')
-rw-r--r-- | src/soundio/soundmanager.cpp | 2 | ||||
-rw-r--r-- | src/soundio/soundmanager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soundio/soundmanager.cpp b/src/soundio/soundmanager.cpp index 87724e7e12..27544c484d 100644 --- a/src/soundio/soundmanager.cpp +++ b/src/soundio/soundmanager.cpp @@ -645,7 +645,7 @@ void SoundManager::registerInput(AudioInput input, AudioDestination *dest) { qDebug() << "WARNING: AudioInput already registered!"; } - m_registeredDestinations.insertMulti(input, dest); + m_registeredDestinations.insert(input, dest); emit inputRegistered(input, dest); } diff --git a/src/soundio/soundmanager.h b/src/soundio/soundmanager.h index e82dcd19b4..7765b1dc96 100644 --- a/src/soundio/soundmanager.h +++ b/src/soundio/soundmanager.h @@ -156,7 +156,7 @@ class SoundManager : public QObject { SoundManagerConfig m_config; SoundDevicePointer m_pErrorDevice; QHash<AudioOutput, AudioSource*> m_registeredSources; - QHash<AudioInput, AudioDestination*> m_registeredDestinations; + QMultiHash<AudioInput, AudioDestination*> m_registeredDestinations; ControlObject* m_pControlObjectSoundStatusCO; ControlObject* m_pControlObjectVinylControlGainCO; |