[QGIS Commit] r10128 - in trunk/qgis/src/core/spatialindex: . include rtree

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Feb 8 13:11:03 EST 2009


Author: jef
Date: 2009-02-08 13:11:02 -0500 (Sun, 08 Feb 2009)
New Revision: 10128

Modified:
   trunk/qgis/src/core/spatialindex/include/Tools.h
   trunk/qgis/src/core/spatialindex/qgsspatialindex.cpp
   trunk/qgis/src/core/spatialindex/rtree/RTree.cc
Log:
fix MSVC warning and stdint.h dependency

Modified: trunk/qgis/src/core/spatialindex/include/Tools.h
===================================================================
--- trunk/qgis/src/core/spatialindex/include/Tools.h	2009-02-08 17:57:14 UTC (rev 10127)
+++ trunk/qgis/src/core/spatialindex/include/Tools.h	2009-02-08 18:11:02 UTC (rev 10128)
@@ -25,8 +25,10 @@
 #ifdef _MSC_VER
 #include <locale>
 #include <limits>
+typedef unsigned __int8 uint8_t;
+#else
+#include <stdint.h>
 #endif//_MSC_VER
-#include <stdint.h>
 #include <assert.h>
 #include <iostream>
 #include <iomanip>

Modified: trunk/qgis/src/core/spatialindex/qgsspatialindex.cpp
===================================================================
--- trunk/qgis/src/core/spatialindex/qgsspatialindex.cpp	2009-02-08 17:57:14 UTC (rev 10127)
+++ trunk/qgis/src/core/spatialindex/qgsspatialindex.cpp	2009-02-08 18:11:02 UTC (rev 10128)
@@ -113,10 +113,12 @@
   }
   catch ( Tools::Exception &e )
   {
+    Q_UNUSED(e);
     QgsDebugMsg( QString( "Tools::Exception caught: " ).arg( e.what().c_str() ) );
   }
   catch ( const std::exception &e )
   {
+    Q_UNUSED(e);
     QgsDebugMsg( QString( "std::exception caught: " ).arg( e.what() ) );
   }
   catch ( ... )

Modified: trunk/qgis/src/core/spatialindex/rtree/RTree.cc
===================================================================
--- trunk/qgis/src/core/spatialindex/rtree/RTree.cc	2009-02-08 17:57:14 UTC (rev 10127)
+++ trunk/qgis/src/core/spatialindex/rtree/RTree.cc	2009-02-08 18:11:02 UTC (rev 10128)
@@ -1177,6 +1177,7 @@
   }
   catch ( Tools::InvalidPageException& e )
   {
+    Q_UNUSED(e);	   
     delete[] buffer;
     QgsDebugMsg( e.what().c_str() );
     throw Tools::IllegalStateException( "writeNode: failed with Tools::InvalidPageException" );
@@ -1222,6 +1223,7 @@
   }
   catch ( Tools::InvalidPageException& e )
   {
+    Q_UNUSED(e);	   
     QgsDebugMsg( e.what().c_str() );
     throw Tools::IllegalStateException( "readNode: failed with Tools::InvalidPageException" );
   }
@@ -1272,6 +1274,7 @@
   }
   catch ( Tools::InvalidPageException& e )
   {
+    Q_UNUSED(e);	   
     QgsDebugMsg( e.what().c_str() );
     throw Tools::IllegalStateException( "deleteNode: failed with Tools::InvalidPageException" );
   }



More information about the QGIS-commit mailing list