src/colors.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1065
c8ecddbd99e9
--- a/src/colors.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/colors.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -378,7 +378,7 @@
  */
 bool LDConfigParser::getToken(QString& tokenText, int position)
 {
-	if (position >= m_tokens.size())
+	if (position >= length(m_tokens))
 	{
 		return false;
 	}
@@ -399,7 +399,7 @@
  */
 bool LDConfigParser::findToken(int& tokenPosition, QString needle, int args)
 {
-	for (int i = 0; i < (m_tokens.size() - args); ++i)
+	for (int i = 0; i < (length(m_tokens) - args); ++i)
 	{
 		if (m_tokens[i] == needle)
 		{

mercurial