Merge pull request #11674 from utkarshgautamnyu/fix/JSBaker

Fixed issue with QTextStream in JSBaker
This commit is contained in:
Stephen Birarda 2017-10-25 14:06:43 -05:00 committed by GitHub
commit a28f2f19e0

View file

@ -72,7 +72,7 @@ void JSBaker::bake() {
bool JSBaker::bakeJS(const QByteArray& inputFile, QByteArray& outputFile) { bool JSBaker::bakeJS(const QByteArray& inputFile, QByteArray& outputFile) {
// Read from inputFile and write to outputFile per character // Read from inputFile and write to outputFile per character
QTextStream in(inputFile, QIODevice::ReadOnly); QTextStream in(inputFile, QIODevice::ReadOnly);
QTextStream out(outputFile, QIODevice::WriteOnly); QTextStream out(&outputFile, QIODevice::WriteOnly);
// Algorithm requires the knowledge of previous and next character for each character read // Algorithm requires the knowledge of previous and next character for each character read
QChar currentCharacter; QChar currentCharacter;