Skip to content
Permalink
Browse files
Fix compiler warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@6490 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Feb 2, 2007
1 parent abb13a1 commit a1f4991cd9fa3cbf3a72ea9c4f10bafd967476dd
Showing with 10 additions and 10 deletions.
  1. +4 −4 src/providers/postgres/qgspostgresprovider.cpp
  2. +6 −6 src/providers/wms/qgswmsprovider.cpp
@@ -368,7 +368,7 @@ bool QgsPostgresProvider::getNextFeature(QgsFeature& feat,
feat.setFeatureId(oid);

// fetch attributes
if (fetchAttributes.count() == fieldCount())
if (static_cast<uint>(fetchAttributes.count()) == fieldCount())
getFeatureAttributes(oid, row, feat); // only one sql query to get all attributes
else
getFeatureAttributes(oid, row, feat, fetchAttributes); // ineffective: one sql per attribute
@@ -1019,7 +1019,7 @@ QString QgsPostgresProvider::chooseViewColumn(const tableCols& cols)
// 'oid' columns in tables don't have a constraint on them, but
// they are useful to consider, so add them in if not already
// here.
for (int i = 0; i < oids.size(); ++i)
for (uint i = 0; i < oids.size(); ++i)
{
if (suitable.find(oids[i]->first) == suitable.end())
{
@@ -1493,7 +1493,7 @@ bool QgsPostgresProvider::addFeature(QgsFeature& f, int primaryKeyHighWater)
// Add the WKB geometry to the INSERT statement
QgsGeometry* geometry = f.geometry();
unsigned char* geom = geometry->wkbBuffer();
for (int i=0; i < geometry->wkbSize(); ++i)
for (uint i=0; i < geometry->wkbSize(); ++i)
{
if (useWkbHex)
{
@@ -1929,7 +1929,7 @@ bool QgsPostgresProvider::changeGeometryValues(QgsGeometryMap & geometry_map)

// Add the WKB geometry to the UPDATE statement
unsigned char* geom = iter->wkbBuffer();
for (int i=0; i < iter->wkbSize(); ++i)
for (uint i=0; i < iter->wkbSize(); ++i)
{
if (useWkbHex)
{
@@ -65,13 +65,13 @@ QgsWmsProvider::QgsWmsProvider(QString const & uri)
mHttpProxyUser(0),
mHttpProxyPass(0),
httpcapabilitiesresponse(0),
imageCrs(DEFAULT_LATLON_CRS),
cachedImage(0),
cachedViewExtent(0),
cachedPixelWidth(0),
cachedPixelHeight(0),
mCoordinateTransform(0),
extentDirty(TRUE),
imageCrs(DEFAULT_LATLON_CRS),
mGetFeatureInfoUrlBase(0)
{
#ifdef QGISDEBUG
@@ -224,7 +224,7 @@ QSet<QString> QgsWmsProvider::supportedCrsForLayers(QStringList const & layers)
QSet<QString> crsSet;

// convert std::vector to std::set for set comparisons
for (int j = 0; j < crsVector.size(); j++)
for (uint j = 0; j < crsVector.size(); j++)
{
crsSet.insert( crsVector[j] );
}
@@ -1647,7 +1647,7 @@ void QgsWmsProvider::parseLayer(QDomElement const & e, QgsWmsLayerProperty& laye
extentForLayer[ layerProperty.name ] = layerProperty.ex_GeographicBoundingBox;

// see if we can refine the bounding box with the CRS-specific bounding boxes
for ( int i = 0; i < layerProperty.boundingBox.size(); i++ )
for ( uint i = 0; i < layerProperty.boundingBox.size(); i++ )
{
#ifdef QGISDEBUG
std::cout << "QgsWmsProvider::parseLayer: testing bounding box CRS which is "
@@ -2128,7 +2128,7 @@ QString QgsWmsProvider::getMetadata()

// Iterate through layers

for (int i = 0; i < layersSupported.size(); i++)
for (uint i = 0; i < layersSupported.size(); i++)
{

// TODO: Handle nested layers
@@ -2247,7 +2247,7 @@ QString QgsWmsProvider::getMetadata()
myMetadataQString += "</td></tr>";

// Layer Coordinate Reference Systems
for ( int j = 0; j < layersSupported[i].crs.size(); j++ )
for ( uint j = 0; j < layersSupported[i].crs.size(); j++ )
{
myMetadataQString += "<tr><td bgcolor=\"gray\">";
myMetadataQString += tr("Available in CRS");
@@ -2258,7 +2258,7 @@ QString QgsWmsProvider::getMetadata()
}

// Layer Styles
for (int j = 0; j < layersSupported[i].style.size(); j++)
for (uint j = 0; j < layersSupported[i].style.size(); j++)
{
myMetadataQString += "<tr><td bgcolor=\"gray\">";
myMetadataQString += tr("Available in style");

0 comments on commit a1f4991

Please sign in to comment.