Skip to content

Commit

Permalink
Merge pull request #3492 from ahuarte47/Issue_RemoveStrlenWarnings
Browse files Browse the repository at this point in the history
Remove strlen warnings on windows/vstudio
  • Loading branch information
m-kuhn committed Sep 16, 2016
2 parents 1b0efa3 + d1103e5 commit c74d008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgml.cpp
Expand Up @@ -453,7 +453,7 @@ QVector<QgsGmlStreamingParser::QgsGmlFeaturePtrGmlIdPair> QgsGmlStreamingParser:
} }


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

0 comments on commit c74d008

Please sign in to comment.