sources/coloredline.cpp

changeset 137
485cb6d6b98c
parent 132
8a4690db252e
child 141
d9073c13dc98
child 142
b4f89893c702
--- a/sources/coloredline.cpp	Fri May 15 22:46:53 2015 +0300
+++ b/sources/coloredline.cpp	Wed Jul 20 14:48:47 2016 +0300
@@ -129,10 +129,8 @@
 		{
 			String color = m_incomingColorName.to_lowercase();
 
-			for (size_t i = 0; i < countof(colorCodes); ++i)
+			for (const ColorCodeInfo &colorInfo : colorCodes)
 			{
-				const ColorCodeInfo& colorInfo = colorCodes[i];
-
 				if (String(colorInfo.name).to_lowercase() == color)
 				{
 					activate_color(colorInfo.color, colorInfo.bold);

mercurial