Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e22d24)
  • Loading branch information
jef-n committed Oct 8, 2016
1 parent f42b554 commit f2d1c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ QVector<QgsGmlStreamingParser::QgsGmlFeaturePtrGmlIdPair> QgsGmlStreamingParser:
}

#define LOCALNAME_EQUALS(string_constant) \
( localNameLen == strlen( string_constant ) && memcmp(pszLocalName, string_constant, localNameLen) == 0 )
( localNameLen == ( int )strlen( string_constant ) && memcmp(pszLocalName, string_constant, localNameLen) == 0 )

void QgsGmlStreamingParser::startElement( const XML_Char* el, const XML_Char** attr )
{
Expand Down Expand Up @@ -675,7 +675,7 @@ void QgsGmlStreamingParser::startElement( const XML_Char* el, const XML_Char** a
isGeom = true;
}
else if ( isGMLNS &&
localNameLen == strlen( "Polygon" ) && memcmp( pszLocalName, "Polygon", localNameLen ) == 0 )
localNameLen == ( int )strlen( "Polygon" ) && memcmp( pszLocalName, "Polygon", localNameLen ) == 0 )
{
isGeom = true;
mCurrentWKBFragments.push_back( QList<QgsWkbPtr>() );
Expand Down

0 comments on commit f2d1c2b

Please sign in to comment.