Commit de2d26bf authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 8c57858a
......@@ -106,7 +106,8 @@ void insertLibraryCataloguesAndIcons() {
KLocale * l = KGlobal::locale();
KIconLoader * il = KIconLoader::global();
for ( unsigned int i = 0 ; i < sizeof catalogs / sizeof *catalogs ; ++i ) {
unsigned int catalogSize = (sizeof catalogs / sizeof *catalogs);
for ( unsigned int i = 0 ; i < catalogSize ; ++i ) {
l->insertCatalog( QLatin1String(catalogs[i]) );
il->addAppDir( QLatin1String(catalogs[i]) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment