Op 30-3-2013 6:08, Scott Kostyshak schreef:
+                       // Search for an explicit name
+                       bool foundMatch = false;
+                       for (int i = 0 ; i < numErrorTags ; ++i)
+                               if (tmp == errorTags[i].name) {
+                                       foundMatch = true;
+                                       l |= errorTags[i].level;
+                                       break;
+                               }
+                       if (!foundMatch) {

could be replaced by (but I don't know what others prefer):

+                       // Search for an explicit name
+                       int i = 0;
+                       for (; i < numErrorTags; ++i) {
+                               if (tmp == errorTags[i].name) {
+                                       l |= errorTags[i].level;
+                                       break;
+                               }
+                       }
+                       if (i == numErrorTags) {

Vincent


Reply via email to