- i intended to actually use that new last() overload...

Tue, 16 Dec 2014 00:17:15 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 16 Dec 2014 00:17:15 +0200
changeset 52
ae5b486f6882
parent 51
481073b016a9
child 53
8f1a6f40d1b4

- i intended to actually use that new last() overload...

sources/interface.cpp file | annotate | diff | comparison | revisions
--- a/sources/interface.cpp	Tue Dec 16 00:15:44 2014 +0200
+++ b/sources/interface.cpp	Tue Dec 16 00:17:15 2014 +0200
@@ -912,12 +912,12 @@
 	{
 		if (ch == '\n')
 		{
-			g_output[g_output.size() - 1].finalize();
+			g_output.last().finalize();
 			g_output << ColoredLine();
 			continue;
 		}
 
-		if (g_output[g_output.size() - 1].length() == 0)
+		if (g_output.last().length() == 0)
 		{
 			time_t now;
 			time (&now);
@@ -925,10 +925,10 @@
 			strftime (timestamp, sizeof timestamp, "[%H:%M:%S] ", localtime (&now));
 
 			for (char* cp = timestamp; *cp != '\0'; ++cp)
-				g_output[g_output.size() - 1].add_char (*cp);
+				g_output.last().add_char (*cp);
 		}
 
-		g_output[g_output.size() - 1].add_char (ch);
+		g_output.last().add_char (ch);
 	}
 
 	g_needOutputRender = true;

mercurial