* gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0.

* gnu/gcj/xlib/XImage.java:  Likewise.
	* gnu/gcj/xlib/XColor.java:  Likewise.

From-SVN: r50498
This commit is contained in:
Per Bothner 2002-03-09 08:25:13 -08:00 committed by Per Bothner
parent e4a4c70b54
commit c314ee353b
4 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2002-03-09 Per Bothner <per@bothner.com>
* gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0.
* gnu/gcj/xlib/XImage.java: Likewise.
* gnu/gcj/xlib/XColor.java: Likewise.
2002-03-09 Adam Megacz <adam@xwt.org>
* java/lang/Win32Process.java (ConcreteProcess): Now throws an

View File

@ -45,8 +45,8 @@ public class WindowAttributes
{
WindowAttributes attributes = (WindowAttributes) super.clone();
// In case of an exception before the stucture is copied.
attributes.in = 0;
attributes.out = 0;
attributes.in = null;
attributes.out = null;
// FIXME: do anything else?
@ -77,13 +77,13 @@ public class WindowAttributes
* Reference to XWindowAttribute structure containing attributes
* read from a window.
*/
RawData in = 0;
RawData in = null;
/**
* Reference to XSetWindowAttribute structure containing attributes
* to be applied to a window.
*/
RawData out = 0;
RawData out = null;
long mask;

View File

@ -38,5 +38,5 @@ public final class XColor
public final native byte getFlags();
public final native long getPixelValue();
RawData structure = 0;
RawData structure = null;
}

View File

@ -141,7 +141,7 @@ public class XImage
protected native void finalize();
boolean ownsData = false;
RawData structure = 0;
RawData structure = null;
public final native int getWidth();
public final native int getHeight();