Skip to content

Commit 6862a94

Browse files
committed
Small sizeof() fix
1 parent 508c8ce commit 6862a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const char* QGis::qgisUnitTypes[] =
8585

8686
QGis::UnitType QGis::fromLiteral( QString literal, QGis::UnitType defaultType )
8787
{
88-
for ( unsigned int i = 0; i < sizeof( qgisUnitTypes ); i++ )
88+
for ( unsigned int i = 0; i < ( sizeof( qgisUnitTypes ) / sizeof( qgisUnitTypes[0] ) ); i++ )
8989
{
9090
if ( literal == qgisUnitTypes[ i ] )
9191
{

0 commit comments

Comments
 (0)