Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small sizeof() fix
  • Loading branch information
homann committed Aug 24, 2012
1 parent 508c8ce commit 6862a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgis.cpp
Expand Up @@ -85,7 +85,7 @@ const char* QGis::qgisUnitTypes[] =

QGis::UnitType QGis::fromLiteral( QString literal, QGis::UnitType defaultType )
{
for ( unsigned int i = 0; i < sizeof( qgisUnitTypes ); i++ )
for ( unsigned int i = 0; i < ( sizeof( qgisUnitTypes ) / sizeof( qgisUnitTypes[0] ) ); i++ )
{
if ( literal == qgisUnitTypes[ i ] )
{
Expand Down

0 comments on commit 6862a94

Please sign in to comment.