Compare QString w/ char*, not char

This commit is contained in:
Simon Walton 2018-03-21 23:09:46 -07:00
parent 7dacc2f2c0
commit 10f3032746

View file

@ -190,7 +190,7 @@ bool JSBaker::handleMultiLineComments(QTextStream& in) {
while (!in.atEnd()) { while (!in.atEnd()) {
in >> character; in >> character;
if (character == '*') { if (character == '*') {
if (in.read(1)[0] == '/') { if (in.read(1) == "/") {
return true; return true;
} }
} }