From 1e121b6c945b128d59e60086ea0d5e8ee7eeeff1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 23 Feb 2004 03:23:29 +0000 Subject: [PATCH] - fix compiler error - fix compiler warning svn path=/trunk/kdebase/kwin/; revision=290440 --- geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 526cabafa5..a74d0a8ba2 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -68,7 +68,7 @@ void Workspace::updateClientArea( bool force ) int nscreens = desktopwidget -> numScreens (); // kdDebug () << "screens: " << nscreens << endl; QRect* new_wareas = new QRect[ numberOfDesktops() + 1 ]; - QRect** new_sareas = new (QRect*)[ numberOfDesktops() + 1]; + QRect** new_sareas = new QRect*[ numberOfDesktops() + 1]; QRect screens [ nscreens ]; QRect desktopArea = desktopwidget -> geometry (); for( int iS = 0; @@ -244,6 +244,7 @@ QRect Workspace::clientArea( clientAreaOption opt, const QPoint& p, int desktop return sarea; } assert( false ); + return QRect(); } QRect Workspace::clientArea( clientAreaOption opt, const Client* c ) const