-pedantic
CCMAIL:notmart@gmail.com svn path=/trunk/KDE/kdelibs/; revision=941672
This commit is contained in:
parent
72e29219f2
commit
7479e79f40
@ -21,6 +21,7 @@
|
||||
#include "windowpreview_p.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QVarLengthArray>
|
||||
|
||||
#include <kwindowsystem.h>
|
||||
#include <kdebug.h>
|
||||
@ -185,7 +186,7 @@ void WindowPreview::setInfo()
|
||||
x += s.width() + 5;
|
||||
}
|
||||
|
||||
long data[(1 + 6*numWindows)];
|
||||
QVarLengthArray<long, 1024> data(1 + 6*numWindows);
|
||||
data[0] = numWindows;
|
||||
|
||||
for (int i = 0; i<numWindows; ++i) {
|
||||
@ -201,7 +202,7 @@ void WindowPreview::setInfo()
|
||||
}
|
||||
|
||||
XChangeProperty(dpy, parentWidget()->winId(), atom, atom, 32, PropModeReplace,
|
||||
reinterpret_cast<unsigned char *>(data), sizeof(data) / sizeof(data[ 0 ]));
|
||||
reinterpret_cast<unsigned char *>(data.data()), data.size());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user