[qet] [3079] Add flags for qmake to use C++11

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


Revision: 3079
Author:   blacksun
Date:     2014-05-26 16:42:00 +0200 (Mon, 26 May 2014)
Log Message:
-----------
Add flags for qmake to use C++11

Modified Paths:
--------------
    trunk/qelectrotech.pro
    trunk/sources/qetgraphicsitem/masterelement.cpp

Modified: trunk/qelectrotech.pro
===================================================================
--- trunk/qelectrotech.pro	2014-05-25 18:33:06 UTC (rev 3078)
+++ trunk/qelectrotech.pro	2014-05-26 14:42:00 UTC (rev 3079)
@@ -100,6 +100,9 @@
 # Ajustement des bibliotheques utilisees lors de l'edition des liens
 unix:QMAKE_LIBS_THREAD -= -lpthread
 
+# Enable C++11
+QMAKE_CXXFLAGS += -std=c++11
+
 # Description de l'installation
 target.path        = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
 

Modified: trunk/sources/qetgraphicsitem/masterelement.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/masterelement.cpp	2014-05-25 18:33:06 UTC (rev 3078)
+++ trunk/sources/qetgraphicsitem/masterelement.cpp	2014-05-26 14:42:00 UTC (rev 3079)
@@ -29,7 +29,7 @@
 	CustomElement(location, qgi, s, state)
 {
 	link_type_ = Master;
-	cri_ = 0;
+	cri_ = nullptr;
 	connect(this, SIGNAL(elementInfoChange(DiagramContext)), this, SLOT(updateLabel()));
 }
 
@@ -93,7 +93,7 @@
 		if (linkedElements().isEmpty()) {
 			diagram()->removeItem(cri_);
 			delete cri_;
-			cri_ = 0;
+			cri_ = nullptr;
 		}
 		else {
 			cri_->updateLabel();


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