# HG changeset patch # User Santeri Piippo # Date 1398697363 -10800 # Node ID 8d4a9d03e246a1db61b741d1499c8b5a57f3bf07 # Parent 17a854ef44122c64b1e377fa14f28d7d27bda395 - some minor cleanup diff -r 17a854ef4412 -r 8d4a9d03e246 src/ldDocument.cc --- a/src/ldDocument.cc Mon Apr 28 17:59:20 2014 +0300 +++ b/src/ldDocument.cc Mon Apr 28 18:02:43 2014 +0300 @@ -884,9 +884,10 @@ obj->setColor (tokens[3].toLong()); obj->pos.apply ([&](Axis ax, double& value) { value = tokens[4 + ax].toDouble(); }); return obj; - } elif (tokens[2] == "OVERLAY") + } + elif (tokens[2] == "OVERLAY") { - checkTokenCount (line, tokens, 9);; + checkTokenCount (line, tokens, 9); checkTokenNumbers (line, tokens, 5, 8); LDOverlay* obj = new LDOverlay; @@ -994,12 +995,13 @@ return obj; } - default: // Strange line we couldn't parse + default: throw LDError (line, "Unknown line code number"); } } catch (LDParseError& e) { + // Strange line we couldn't parse return new LDError (e.line(), e.error()); } } diff -r 17a854ef4412 -r 8d4a9d03e246 updaterevision/updaterevision.c --- a/updaterevision/updaterevision.c Mon Apr 28 17:59:20 2014 +0300 +++ b/updaterevision/updaterevision.c Mon Apr 28 18:02:43 2014 +0300 @@ -103,7 +103,7 @@ // what we've got, then we don't need to modify it and can avoid rebuilding // dependant files. // [SP] I'm including build date in the file now so it must always be rebuilt. - // In LDForge, this is ony used by the very-quick-to-build version.cc anyway. + // In LDForge, this is only used by the very-quick-to-build version.cc anyway. #if 0 if (fgets(lasthash, sizeof lasthash, stream) == lasthash) {