Fix build on Windows.

This commit is contained in:
Roman Telezhynskyi 2022-11-10 16:16:57 +02:00
parent a2a8f7a4f0
commit 890486f2db

View File

@ -1259,7 +1259,7 @@ auto VDxfEngine::FromUnicodeToCodec(const QString &str, QTextCodec *codec) -> st
auto VDxfEngine::GetFileNameForLocale() const -> std::string auto VDxfEngine::GetFileNameForLocale() const -> std::string
{ {
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
return VDxfEngine::FromUnicodeToCodec(fileName, QTextCodec::codecForLocale()); return VDxfEngine::FromUnicodeToCodec(m_fileName, QTextCodec::codecForLocale());
#else #else
return m_fileName.toStdString(); return m_fileName.toStdString();
#endif #endif