aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/snd/libkvisnd.cpp
diff options
context:
space:
mode:
authorGravatar wodim2017-05-24 12:10:49 +0200
committerGravatar GitHub2017-05-24 12:10:49 +0200
commit8b81b079117e37d8e09d110bdffd3e6eaf2a3543 (patch)
treedf3940628d12129edd67f9ce8f4282129fbb8956 /src/modules/snd/libkvisnd.cpp
parentBuild also in debug mode for windows (#2192) (diff)
downloadKVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.tar.gz
KVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.tar.bz2
KVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.zip
Make Windows code Unicode-aware (#2219)
Diffstat (limited to 'src/modules/snd/libkvisnd.cpp')
-rw-r--r--src/modules/snd/libkvisnd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp
index 1e0cc2f95..a324b91a9 100644
--- a/src/modules/snd/libkvisnd.cpp
+++ b/src/modules/snd/libkvisnd.cpp
@@ -288,7 +288,7 @@ void KviSoundPlayer::cleanupPhonon()
#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
bool KviSoundPlayer::playWinmm(const QString & szFileName)
{
- sndPlaySound(szFileName.toLocal8Bit().data(), SND_ASYNC | SND_NODEFAULT);
+ sndPlaySound(szFileName.toStdWString().c_str(), SND_ASYNC | SND_NODEFAULT);
return true;
}