src/ldConfig.cpp

changeset 941
f895379d7fab
parent 931
85080f7a1c20
--- a/src/ldConfig.cpp	Sun Apr 12 23:02:26 2015 +0300
+++ b/src/ldConfig.cpp	Tue Jul 07 21:35:20 2015 +0300
@@ -45,7 +45,7 @@
 {
 	QFile* fp = OpenLDrawFile ("LDConfig.ldr", false);
 
-	if (fp == null)
+	if (fp == nullptr)
 	{
 		Critical (QObject::tr ("Unable to open LDConfig.ldr for parsing."));
 		return;
@@ -103,7 +103,7 @@
 
 		// Parse alpha if given.
 		if (ParseLDConfigTag (pars, "ALPHA", valuestr))
-			alpha = Clamp (valuestr.toInt(), 0, 255);
+			alpha = clamp (valuestr.toInt(), 0, 255);
 
 		LDColorData* col = new LDColorData;
 		col->m_name = name;

mercurial