diff --git a/effects.cpp b/effects.cpp index c9af32bb46..cad8b7ae4e 100644 --- a/effects.cpp +++ b/effects.cpp @@ -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 diff --git a/lib/kdecoration_plugins_p.cpp b/lib/kdecoration_plugins_p.cpp index 2d764b57a0..0c5fcbe3c1 100644 --- a/lib/kdecoration_plugins_p.cpp +++ b/lib/kdecoration_plugins_p.cpp @@ -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;