error: ISO C++ forbids variable length array
use QVarLengthArray instead svn path=/trunk/KDE/kdebase/workspace/; revision=1069536
This commit is contained in:
parent
f3dbf99a9d
commit
ab85881232
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include <kapplication.h>
|
#include <kapplication.h>
|
||||||
#include <kglobal.h>
|
#include <kglobal.h>
|
||||||
#include <QPainter>
|
|
||||||
#include <kwindowsystem.h>
|
#include <kwindowsystem.h>
|
||||||
|
|
||||||
#include "placement.h"
|
#include "placement.h"
|
||||||
|
@ -40,6 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "geometrytip.h"
|
#include "geometrytip.h"
|
||||||
#include "rules.h"
|
#include "rules.h"
|
||||||
#include "effects.h"
|
#include "effects.h"
|
||||||
|
#include <QPainter>
|
||||||
|
#include <QVarLengthArray>
|
||||||
#include <QX11Info>
|
#include <QX11Info>
|
||||||
|
|
||||||
#include <kephal/screens.h>
|
#include <kephal/screens.h>
|
||||||
|
@ -3334,7 +3335,7 @@ void Client::setQuickTileMode( QuickTileMode mode, bool keyboard )
|
||||||
const int numScreens = Kephal::ScreenUtils::numScreens();
|
const int numScreens = Kephal::ScreenUtils::numScreens();
|
||||||
const int curScreen = screen();
|
const int curScreen = screen();
|
||||||
int nextScreen = curScreen;
|
int nextScreen = curScreen;
|
||||||
QRect screens[numScreens];
|
QVarLengthArray<QRect> screens(numScreens);
|
||||||
for( int i = 0; i < numScreens; ++i ) // Cache
|
for( int i = 0; i < numScreens; ++i ) // Cache
|
||||||
screens[i] = Kephal::ScreenUtils::screenGeometry( i );
|
screens[i] = Kephal::ScreenUtils::screenGeometry( i );
|
||||||
for( int i = 0; i < numScreens; ++i )
|
for( int i = 0; i < numScreens; ++i )
|
||||||
|
|
Loading…
Reference in a new issue