sources/coloredline.cpp

branch
protocol5
changeset 141
d9073c13dc98
parent 134
644935ff6bc1
parent 137
485cb6d6b98c
child 150
37db42ad451a
equal deleted inserted replaced
136:8fb1c657e0b0 141:d9073c13dc98
127 { 127 {
128 if (ch == ']') 128 if (ch == ']')
129 { 129 {
130 String color = m_incomingColorName.to_lowercase(); 130 String color = m_incomingColorName.to_lowercase();
131 131
132 for (size_t i = 0; i < countof(colorCodes); ++i) 132 for (const ColorCodeInfo &colorInfo : colorCodes)
133 { 133 {
134 const ColorCodeInfo& colorInfo = colorCodes[i];
135
136 if (String(colorInfo.name).to_lowercase() == color) 134 if (String(colorInfo.name).to_lowercase() == color)
137 { 135 {
138 activate_color(colorInfo.color, colorInfo.bold); 136 activate_color(colorInfo.color, colorInfo.bold);
139 m_colorCodeStage = 0; 137 m_colorCodeStage = 0;
140 break; 138 break;

mercurial