summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-04-13 17:01:31 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-04-16 07:06:32 +0000
commitdfb132da7e9b8ef3c4d0898798c86a3a1b76fa71 (patch)
tree10f818c34f3f2ae081c2cd573fdbb853f19da012
parent0ec11e3393095dc242030825a6a18dc89e196f99 (diff)
downloadqtmultimedia-dfb132da7e9b8ef3c4d0898798c86a3a1b76fa71.tar.gz
Windows Audio: Fix Clang warnings about int/C-style casts
For 64bit: qwindowsaudioinput.cpp(420,15): warning: cast to 'HMIXEROBJ__ *' from smaller integer type 'UINT' (aka 'unsigned int') [-Wint-to-pointer-cast] mixerID = (HMIXEROBJ)mixerIntID; Change-Id: Icb13142b0d8868e995f47caa02784c260abfc10f Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r--src/plugins/windowsaudio/qwindowsaudioinput.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/windowsaudio/qwindowsaudioinput.cpp b/src/plugins/windowsaudio/qwindowsaudioinput.cpp
index 8d0fc8c24..4771fe1cc 100644
--- a/src/plugins/windowsaudio/qwindowsaudioinput.cpp
+++ b/src/plugins/windowsaudio/qwindowsaudioinput.cpp
@@ -415,9 +415,10 @@ void QWindowsAudioInput::initMixer()
// Get the Mixer ID from the Sound Device ID
UINT mixerIntID = 0;
- if (mixerGetID((HMIXEROBJ)(quintptr(inputDevice)), &mixerIntID, MIXER_OBJECTF_WAVEIN) != MMSYSERR_NOERROR)
+ if (mixerGetID(reinterpret_cast<HMIXEROBJ>(quintptr(inputDevice)),
+ &mixerIntID, MIXER_OBJECTF_WAVEIN) != MMSYSERR_NOERROR)
return;
- mixerID = (HMIXEROBJ)mixerIntID;
+ mixerID = reinterpret_cast<HMIXEROBJ>(quintptr(mixerIntID));
// Get the Destination (Recording) Line Information
MIXERLINE mixerLine;