Skip to content
Permalink
Browse files

Fix some warnings when compiling code for Qt

  • Loading branch information
m-kuhn committed Oct 6, 2015
1 parent 3960da1 commit dc043143b5b9eb7ee2426d58818fd206034d82aa
@@ -276,7 +276,7 @@ bool QgsAttributeAction::readXML( const QDomNode& layer_node )
if ( !aaNode.isNull() )
{
QDomNodeList actionsettings = aaNode.childNodes();
for ( unsigned int i = 0; i < actionsettings.length(); ++i )
for ( int i = 0; i < actionsettings.size(); ++i )
{
QDomElement setting = actionsettings.item( i ).toElement();
addAction(( QgsAction::ActionType ) setting.attributeNode( "type" ).value().toInt(),
@@ -164,7 +164,7 @@ void QgsDiagramSettings::readXML( const QDomElement& elem, const QgsVectorLayer*

if ( attributes.length() > 0 )
{
for ( uint i = 0; i < attributes.length(); i++ )
for ( int i = 0; i < attributes.size(); i++ )
{
QDomElement attrElem = attributes.at( i ).toElement();
QColor newColor( attrElem.attribute( "color" ) );
@@ -69,7 +69,7 @@ void QgsExpressionFieldBuffer::readXml( const QDomNode& layerNode )
{
QDomNodeList fields = expressionFieldsElem.elementsByTagName( "field" );

for ( unsigned int i = 0; i < fields.length(); ++i )
for ( int i = 0; i < fields.size(); ++i )
{
QDomElement field = fields.at( i ).toElement();
QString exp = field.attribute( "expression" );
@@ -2,6 +2,7 @@
#define QGSRULEBASEDLABELING_H

#include <QStringList>
#include <QMap>

#include "qgsvectorlayerlabeling.h"

@@ -51,7 +51,7 @@ QgsEditorWidgetConfig QgsValueMapWidgetFactory::readConfig( const QDomElement& c

QDomNodeList nodes = configElement.elementsByTagName( "value" );

for ( unsigned int i = 0; i < nodes.length(); ++i )
for ( int i = 0; i < nodes.size(); ++i )
{
QDomElement elem = nodes.at( i ).toElement();
cfg.insert( elem.attribute( "key" ), elem.attribute( "value" ) );
@@ -268,7 +268,7 @@ void QgsWFSCapabilities::capabilitiesReplyFinished()

// get the <FeatureType> elements
QDomNodeList featureTypeList = capabilitiesDocument.elementsByTagNameNS( WFS_NAMESPACE, "FeatureType" );
for ( unsigned int i = 0; i < featureTypeList.length(); ++i )
for ( int i = 0; i < featureTypeList.size(); ++i )
{
FeatureType featureType;
QDomElement featureTypeElem = featureTypeList.at( i ).toElement();
@@ -301,14 +301,14 @@ void QgsWFSCapabilities::capabilitiesReplyFinished()

//OtherSRS
QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "OtherSRS" );
for ( unsigned int i = 0; i < otherCRSList.length(); ++i )
for ( int i = 0; i < otherCRSList.size(); ++i )
{
featureType.crslist.append( otherCRSList.at( i ).toElement().text() );
}

//Support <SRS> for compatibility with older versions
QDomNodeList srsList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "SRS" );
for ( unsigned int i = 0; i < srsList.length(); ++i )
for ( int i = 0; i < srsList.size(); ++i )
{
featureType.crslist.append( srsList.at( i ).toElement().text() );
}
@@ -913,7 +913,7 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&

//find <complexType name=complexTypeType
QDomNodeList complexTypeNodeList = schemaElement.elementsByTagNameNS( "http://www.w3.org/2001/XMLSchema", "complexType" );
for ( uint i = 0; i < complexTypeNodeList.length(); ++i )
for ( int i = 0; i < complexTypeNodeList.size(); ++i )
{
if ( complexTypeNodeList.at( i ).toElement().attribute( "name" ) == complexTypeType )
{
@@ -937,7 +937,7 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&

bool foundGeometryAttribute = false;

for ( uint i = 0; i < attributeNodeList.length(); ++i )
for ( int i = 0; i < attributeNodeList.size(); ++i )
{
QDomElement attributeElement = attributeNodeList.at( i ).toElement();
//attribute name

0 comments on commit dc04314

Please sign in to comment.
You can’t perform that action at this time.