From ac083a60f856f95da605c96c2bced1b53c0b79b0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 17 Mar 2004 02:57:23 +0000 Subject: [PATCH] unbreak compilation svn path=/trunk/kdebase/kwin/; revision=296457 --- geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index cdaaadf9bb..cefe1d3ea5 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -69,7 +69,7 @@ void Workspace::updateClientArea( bool force ) // kdDebug () << "screens: " << nscreens << endl; QRect* new_wareas = new QRect[ numberOfDesktops() + 1 ]; QRect** new_sareas = new QRect*[ numberOfDesktops() + 1]; - QRect screens [ nscreens ]; + QRect* screens = new QRect [ nscreens ]; QRect desktopArea = desktopwidget -> geometry (); for( int iS = 0; iS < nscreens; @@ -186,6 +186,7 @@ void Workspace::updateClientArea( bool force ) ++it) (*it)->checkWorkspacePosition(); } + delete[] screens; delete[] new_sareas; delete[] new_wareas; }