Skip to content

Commit

Permalink
Forward encoding to decodeTextData() in readFileText().
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 11, 2024
1 parent bd5b856 commit f31088c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ QString readFileText(const QString& fileName, QString* encoding)
}

QByteArray buffer = textFile.readAll();
return decodeTextData(buffer);
return decodeTextData(buffer, encoding);
}

QString decodeTextData(const QByteArray& fileData, QString* encoding)
Expand Down

0 comments on commit f31088c

Please sign in to comment.