src/stringTable.cpp

changeset 134
eca2fc0acaa2
parent 133
dbbdb870c835
child 135
8b9132fea327
--- a/src/stringTable.cpp	Sat Jul 12 23:04:46 2014 +0300
+++ b/src/stringTable.cpp	Sun Jul 20 17:25:36 2014 +0300
@@ -59,12 +59,14 @@
 	}
 
 	// Must not be too long.
-	if (a.length() >= gMaxStringLength)
+	if (a.length() >= Limits::MaxStringLength)
+	{
 		error ("string `%1` too long (%2 characters, max is %3)\n",
-			   a, a.length(), gMaxStringLength);
+			   a, a.length(), Limits::MaxStringLength);
+	}
 
 	// Check if the table is already full
-	if (g_StringTable.size() == gMaxStringlistSize - 1)
+	if (g_StringTable.size() == Limits::MaxStringlistSize - 1)
 		error ("too many strings!\n");
 
 	// Now, dump the string into the slot

mercurial