From f6600709de61a89af1a96d8f76e6a59c13093870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 1 Jan 2011 09:50:05 +0000 Subject: [PATCH] Fix QLatin1String/QString Krazy issues SVN_SILENT svn path=/trunk/KDE/kdebase/workspace/; revision=1210598 --- effects.cpp | 2 +- lib/kdecoration_plugins_p.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;