what about constifying constifyable

svn path=/trunk/KDE/kdelibs/; revision=923307
This commit is contained in:
Alessandro Diaferia 2009-02-08 15:20:00 +00:00
parent 4dd753fe19
commit 2cc63a17e7

View File

@ -428,10 +428,8 @@ void FrameSvgPrivate::generateBackground(FrameData *frame)
//CENTER
if (frame->tileCenter) {
if (contentHeight > 0 && contentWidth > 0) {
int centerTileHeight;
int centerTileWidth;
centerTileHeight = q->elementSize(prefix + "center").height();
centerTileWidth = q->elementSize(prefix + "center").width();
const int centerTileHeight = q->elementSize(prefix + "center").height();
const int centerTileWidth = q->elementSize(prefix + "center").width();
QPixmap center(centerTileWidth, centerTileHeight);
center.fill(Qt::transparent);