[qet] [4441] Fix GCC 6 warnings, thanks Remi Collet for this patch

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4441
Author:   scorpio810
Date:     2016-04-16 19:20:57 +0200 (Sat, 16 Apr 2016)
Log Message:
-----------
Fix GCC 6 warnings, thanks Remi Collet for this patch

Modified Paths:
--------------
    trunk/sources/diagramcontent.cpp

Modified: trunk/sources/diagramcontent.cpp
===================================================================
--- trunk/sources/diagramcontent.cpp	2016-04-16 11:56:45 UTC (rev 4440)
+++ trunk/sources/diagramcontent.cpp	2016-04-16 17:20:57 UTC (rev 4441)
@@ -89,16 +89,27 @@
 {
 	int count_ = 0;
 
-	foreach(Element *elmt, elements)
-		if (!elmt->isMovable()) elements.remove(elmt); ++count_;
-	foreach(DiagramImageItem *img, images)
-		if (!img->isMovable()) images.remove(img); ++count_;
-	foreach (QetShapeItem *shape, shapes)
-		if (!shape->isMovable()) shapes.remove(shape); ++count_;
+	foreach(Element *elmt, elements) {
+		if (!elmt->isMovable()) {
+			elements.remove(elmt);
+			++count_;
+		}
+	}
+	foreach(DiagramImageItem *img, images) {
+		if (!img->isMovable()) {
+			images.remove(img);
+			++count_;
+		}
+	}
+	foreach (QetShapeItem *shape, shapes) {
+		if (!shape->isMovable()) {
+			shapes.remove(shape);
+			++count_;
+		}
+	}
 
 	return count_;
 }
-
 /**
 	@param filter Types desires
 	@return la liste des items formant le contenu du schema


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/