- fix compiler error

- fix compiler warning

svn path=/trunk/kdebase/kwin/; revision=290440
This commit is contained in:
Dirk Mueller 2004-02-23 03:23:29 +00:00
parent c452b659d4
commit 1e121b6c94

View file

@ -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