diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-10-06 08:38:49 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-10-06 08:38:49 +0800 |
commit | bcdf0b3c92cf2c2412c2aabda9e6465a92a2f78e (patch) | |
tree | a705284b866024f7b1b2ae77ae56dd84269708ae /qmidiplayer-desktop/qmpplugin.cpp | |
parent | d5dfa9292a446d1a916c32d58c2c121d0d6cd07e (diff) | |
download | QMidiPlayer-bcdf0b3c92cf2c2412c2aabda9e6465a92a2f78e.tar.xz |
Fix build failure ...?
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpplugin.cpp | 4 |
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()) { |