src/addObjectDialog.cpp

changeset 1036
993c46d7eb75
parent 1034
a05fc8256a3a
child 1045
f726f8f49c7e
--- a/src/addObjectDialog.cpp	Sun May 08 16:26:16 2016 +0300
+++ b/src/addObjectDialog.cpp	Sun May 08 20:12:54 2016 +0300
@@ -77,13 +77,13 @@
 		{
 			rb_bfcType = new RadioGroup ("Statement", {}, 0, Qt::Vertical);
 
-			for_enum (BfcStatement, i)
+			for (BfcStatement statement : iterateEnum<BfcStatement>())
 			{
 				// Separate these in two columns
-				if (int(i) == ENUM_LIMIT(BfcStatement, Count) / 2)
+				if (int(statement) == EnumLimits<BfcStatement>::Count / 2)
 					rb_bfcType->rowBreak();
 
-				rb_bfcType->addButton (LDBfc::statementToString (i));
+				rb_bfcType->addButton (LDBfc::statementToString(statement));
 			}
 
 			if (obj)

mercurial