Commit 9cd480e0 authored by Bart van der Velden's avatar Bart van der Velden

Yet another attempt (#65)

parent fa0587c3
......@@ -15,6 +15,7 @@ using namespace TagLib;
class TestFileName
{
public:
//
TestFileName(const QString& fileName) : m_fileName(fileName)
{
}
......@@ -24,12 +25,14 @@ public:
#ifdef WIN32
return reinterpret_cast<const wchar_t*> (m_fileName.constData());
#else
return QFile::encodeName(path).constData();
m_byteArray = QFile::encodeName(m_fileName);
return m_byteArray.constData();
#endif
}
private:
QString m_fileName;
QByteArray m_byteArray;
};
QString datapath(const QString& relPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment