Use iterator-based wstring constructor here

This commit is contained in:
Silent 2018-02-11 12:58:52 +01:00
parent 889daff459
commit 84e8be3c38

View file

@ -148,7 +148,7 @@ private:
const wchar_t* dotPos = wcsrchr( nameBegin, '.' );
if ( dotPos != nullptr )
{
m_moduleList.emplace_back( *modules, std::wstring( nameBegin, std::distance( nameBegin, dotPos ) ) );
m_moduleList.emplace_back( *modules, std::wstring( nameBegin, dotPos ) );
}
else
{