mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:48:54 +02:00
Update JSBaker.cpp
This commit is contained in:
parent
70a39f03f7
commit
d4b8559cb2
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ void JSBaker::bake() {
|
||||||
bool success = bakeJS(&inputJS, &outputJS);
|
bool success = bakeJS(&inputJS, &outputJS);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
qCDebug(js_baking) << "Bake Failed";
|
qCDebug(js_baking) << "Bake Failed";
|
||||||
handleError("Eror unterminated multi line comment");
|
handleError("Error unterminated multi line comment");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,9 +69,9 @@ void JSBaker::bake() {
|
||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool JSBaker::bakeJS(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
|
||||||
|
|
Loading…
Reference in a new issue