Resolve an ambiguous function call

This commit is contained in:
Mattias Andersson 2018-07-08 22:15:58 +02:00 committed by John Maguire
parent e9a4db0192
commit 31002ca534
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include <apefile.h>
#include <tag.h>
#include <QByteArray>
#include <QChar>
#include <QFile>
#include <QFileInfo>
#include <QString>
@ -191,7 +192,7 @@ void GME::VGM::Read(const QFileInfo& file_info,
QTextStream fileTagStream(gd3Data, QIODevice::ReadOnly);
// Stored as 16 bit UTF string, two bytes per letter.
fileTagStream.setCodec("UTF-16");
QStringList strings = fileTagStream.readLine(0).split('\0');
QStringList strings = fileTagStream.readLine(0).split(QChar('\0'));
if (strings.count() < 10) return;
/* VGM standard dictates string tag data exist in specific order.