We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db67b3 commit d21bbe4Copy full SHA for d21bbe4
1 file changed
src/apps/LyricFA/util/MatchLyric.cpp
@@ -27,7 +27,7 @@ namespace LyricFA {
27
MatchLyric::~MatchLyric() = default;
28
29
static QString get_lyrics_from_txt(const QString &lyricPath) {
30
- QFile lyricFile(lyricPath.toLocal8Bit());
+ QFile lyricFile(lyricPath);
31
if (lyricFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
32
auto words = QString::fromUtf8(lyricFile.readAll());
33
words.remove(QRegularExpression(u8"[^\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF]"));
0 commit comments