- some minor cleanup

Mon, 28 Apr 2014 18:02:43 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 28 Apr 2014 18:02:43 +0300
changeset 748
8d4a9d03e246
parent 747
17a854ef4412
child 749
806d2baded15

- some minor cleanup

src/ldDocument.cc file | annotate | diff | comparison | revisions
updaterevision/updaterevision.c file | annotate | diff | comparison | revisions
--- 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());
 	}
 }
--- 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)
 		{

mercurial