Skip to content

Commit c74d008

Browse files
authoredSep 16, 2016
Merge pull request #3492 from ahuarte47/Issue_RemoveStrlenWarnings
Remove strlen warnings on windows/vstudio
2 parents 1b0efa3 + d1103e5 commit c74d008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsgml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ QVector<QgsGmlStreamingParser::QgsGmlFeaturePtrGmlIdPair> QgsGmlStreamingParser:
453453
}
454454

455455
#define LOCALNAME_EQUALS(string_constant) \
456-
( localNameLen == strlen( string_constant ) && memcmp(pszLocalName, string_constant, localNameLen) == 0 )
456+
( localNameLen == ( int )strlen( string_constant ) && memcmp(pszLocalName, string_constant, localNameLen) == 0 )
457457

458458
void QgsGmlStreamingParser::startElement( const XML_Char* el, const XML_Char** attr )
459459
{
@@ -674,7 +674,7 @@ void QgsGmlStreamingParser::startElement( const XML_Char* el, const XML_Char** a
674674
isGeom = true;
675675
}
676676
else if ( isGMLNS &&
677-
localNameLen == strlen( "Polygon" ) && memcmp( pszLocalName, "Polygon", localNameLen ) == 0 )
677+
localNameLen == ( int )strlen( "Polygon" ) && memcmp( pszLocalName, "Polygon", localNameLen ) == 0 )
678678
{
679679
isGeom = true;
680680
mCurrentWKBFragments.push_back( QList<QgsWkbPtr>() );

0 commit comments

Comments
 (0)
Please sign in to comment.