From 9a3cca0ef975f2f27ab4c64b95bf6d90ad25ac70 Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Wed, 5 May 2010 11:51:09 +0000 Subject: [PATCH] SVN_SILENT Replaced delete loop with qDeleteAll() svn path=/trunk/KDE/kdebase/workspace/; revision=1123131 --- tiling.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tiling.cpp b/tiling.cpp index b773c1a1cd..0b5d4f81f9 100644 --- a/tiling.cpp +++ b/tiling.cpp @@ -55,11 +55,7 @@ void Workspace::setTilingMode( bool tiling ) } else { - foreach( TilingLayout *t, tilingLayouts ) - { - if( t ) - delete t; - } + qDeleteAll( tilingLayouts ); tilingLayouts.clear(); } }