Don't assign the return value to a member variable.

svn path=/trunk/KDE/kdebase/workspace/; revision=845784
icc-effect-5.14.5
Luboš Luňák 2008-08-12 11:45:06 +00:00
parent 63b01aff5d
commit ff13bd5ed5
1 changed files with 4 additions and 4 deletions

View File

@ -483,7 +483,7 @@ Pixmap Toplevel::createWindowPixmap()
assert( compositing());
grabXServer();
KXErrorHandler err;
window_pix = XCompositeNameWindowPixmap( display(), frameId());
Pixmap pix = XCompositeNameWindowPixmap( display(), frameId());
// check that the received pixmap is valid and actually matches what we
// know about the window (i.e. size)
XWindowAttributes attrs;
@ -492,11 +492,11 @@ Pixmap Toplevel::createWindowPixmap()
|| attrs.width != width() || attrs.height != height() || attrs.map_state != IsViewable )
{
kDebug( 1212 ) << "Creating window pixmap failed: " << this;
XFreePixmap( display(), window_pix );
window_pix = None;
XFreePixmap( display(), pix );
pix = None;
}
ungrabXServer();
return window_pix;
return pix;
#else
return None;
#endif