sources/coloredline.cpp

changeset 182
20ca0a6be175
parent 181
e254398fcc7c
child 183
9b6a0daedfc0
--- a/sources/coloredline.cpp	Wed Jan 27 13:17:11 2021 +0200
+++ b/sources/coloredline.cpp	Wed Jan 27 14:04:53 2021 +0200
@@ -127,11 +127,11 @@
 	{
 		if (ch == ']')
 		{
-			String color = m_incomingColorName.toLowerCase();
+			String color = to_lowercase(m_incomingColorName);
 
 			for (const ColorCodeInfo &colorInfo : colorCodes)
 			{
-				if (String(colorInfo.name).toLowerCase() == color)
+				if (to_lowercase(colorInfo.name) == color)
 				{
 					activateColor(colorInfo.color, colorInfo.bold);
 					m_colorCodeStage = 0;

mercurial