aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-10-06 08:38:49 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-10-06 08:38:49 +0800
commitbcdf0b3c92cf2c2412c2aabda9e6465a92a2f78e (patch)
treea705284b866024f7b1b2ae77ae56dd84269708ae
parentd5dfa9292a446d1a916c32d58c2c121d0d6cd07e (diff)
downloadQMidiPlayer-bcdf0b3c92cf2c2412c2aabda9e6465a92a2f78e.tar.xz
Fix build failure ...?
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 875a689..fd79b16 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -23,7 +23,9 @@ std::string wstr2str(std::wstring s)
void qmpPluginManager::scanPlugins(const std::vector<std::string> &pp)
{
QDirIterator *dir;
- std::vector<std::wstring> cpluginpaths(pp);
+ std::vector<std::wstring> cpluginpaths;
+ std::wstring_convert<std::codecvt_utf8<wchar_t>,wchar_t> wsc;
+ for(auto p:pp)cpluginpaths.push_back(wsc.from_bytes(p));
dir=new QDirIterator(QCoreApplication::applicationDirPath()+"/plugins/");
while(dir->hasNext())
{