Fix QLatin1String/QString Krazy issues

SVN_SILENT

svn path=/trunk/KDE/kdebase/workspace/; revision=1210598
This commit is contained in:
Martin Gräßlin 2011-01-01 09:50:05 +00:00
parent 21c0066dc5
commit f6600709de
2 changed files with 2 additions and 2 deletions

View file

@ -1037,7 +1037,7 @@ bool EffectsHandlerImpl::loadEffect( const QString& name )
assert( current_build_quads == 0 );
assert( current_transform == 0 );
if( !name.startsWith("kwin4_effect_") )
if( !name.startsWith(QLatin1String("kwin4_effect_")) )
kWarning( 1212 ) << "Effect names usually have kwin4_effect_ prefix" ;
// Make sure a single effect won't be loaded multiple times

View file

@ -110,7 +110,7 @@ bool KDecorationPlugins::loadPlugin( QString nameStr )
nameStr = group.readEntry("PluginLib", defaultPlugin );
}
// make sure people can switch between HEAD and kwin_iii branch
if( nameStr.startsWith( "kwin_" ))
if( nameStr.startsWith( QLatin1String("kwin_") ))
nameStr = "kwin3_" + nameStr.mid( 5 );
KLibrary *oldLibrary = library;