sources/coloredline.cpp

branch
protocol5
changeset 141
d9073c13dc98
parent 134
644935ff6bc1
parent 137
485cb6d6b98c
child 150
37db42ad451a
--- a/sources/coloredline.cpp	Wed Jul 20 13:29:03 2016 +0300
+++ b/sources/coloredline.cpp	Wed Jul 20 15:03:37 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