[QGIS Commit] r8457 - in trunk/qgis/src/plugins: grass north_arrow

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon May 19 08:59:07 EDT 2008


Author: timlinux
Date: 2008-05-19 08:59:06 -0400 (Mon, 19 May 2008)
New Revision: 8457

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassedit.cpp
   trunk/qgis/src/plugins/grass/qgsgrassnewmapset.cpp
   trunk/qgis/src/plugins/north_arrow/plugin.cpp
Log:
Use qt Q_UNUSED for unused params rather


Modified: trunk/qgis/src/plugins/grass/qgsgrassedit.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassedit.cpp	2008-05-18 16:04:49 UTC (rev 8456)
+++ trunk/qgis/src/plugins/grass/qgsgrassedit.cpp	2008-05-19 12:59:06 UTC (rev 8457)
@@ -1105,7 +1105,7 @@
     }
     catch(QgsCsException& cse)
     {
-      UNUSED(cse);
+      Q_UNUSED(cse);
       //error
     }
   }

Modified: trunk/qgis/src/plugins/grass/qgsgrassnewmapset.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassnewmapset.cpp	2008-05-18 16:04:49 UTC (rev 8456)
+++ trunk/qgis/src/plugins/grass/qgsgrassnewmapset.cpp	2008-05-19 12:59:06 UTC (rev 8457)
@@ -604,7 +604,7 @@
       }
       catch(QgsCsException &cse)
       {
-        UNUSED(cse);
+        Q_UNUSED(cse);
         std::cerr << "Cannot transform point" << std::endl;
         ok = false;
         break;
@@ -950,7 +950,7 @@
       }
       catch(QgsCsException &cse)
       {
-        UNUSED(cse);
+        Q_UNUSED(cse);
         std::cerr << "Cannot transform point" << std::endl;
         ok = false;
         break;
@@ -1040,7 +1040,7 @@
       }
       catch(QgsCsException &cse)
       {
-        UNUSED(cse);
+        Q_UNUSED(cse);
         std::cerr << "Cannot transform point" << std::endl;
         ok = false;
         break;
@@ -1186,7 +1186,7 @@
       }
       catch(QgsCsException &cse)
       {
-        UNUSED(cse);
+        Q_UNUSED(cse);
         std::cerr << "Cannot transform point" << std::endl;
         ok = false;
         break;

Modified: trunk/qgis/src/plugins/north_arrow/plugin.cpp
===================================================================
--- trunk/qgis/src/plugins/north_arrow/plugin.cpp	2008-05-18 16:04:49 UTC (rev 8456)
+++ trunk/qgis/src/plugins/north_arrow/plugin.cpp	2008-05-19 12:59:06 UTC (rev 8457)
@@ -319,15 +319,15 @@
       // project p1 and p2 to geographic coords
       try
       {        
-	p1 = transform.transform(p1);
-	p2 = transform.transform(p2);
+        p1 = transform.transform(p1);
+        p2 = transform.transform(p2);
       }
       catch (QgsException &e)
       {
-	UNUSED(e);
-	// just give up
-	QgsDebugMsg("Transformation error, quitting");
-	return false;
+        Q_UNUSED(e);
+        // just give up
+        QgsDebugMsg("Transformation error, quitting");
+        return false;
       }
 
       // Work out the value of the initial heading one takes to go



More information about the QGIS-commit mailing list