Skip to content
Permalink
Browse files

Small sizeof() fix

  • Loading branch information
homann committed Aug 24, 2012
1 parent 508c8ce commit 6862a948b1113b3eaaee74b1bc60ffcbb4b293d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgis.cpp
@@ -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 ] )
{

0 comments on commit 6862a94

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