From 7f09034f0fd24fdbb709d8fccb8df1c5b3a0eed6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 4 Sep 2003 16:58:13 +0000 Subject: natEmbeddedWindow.cc (setWindowPeer): Removed lvalue cast; use correct rvalue cast. * gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed lvalue cast; use correct rvalue cast. From-SVN: r71076 --- libjava/ChangeLog | 6 ++++++ libjava/gnu/java/awt/natEmbeddedWindow.cc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index fbd37c5..49d2115 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-09-04 Tom Tromey + + * gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed + lvalue cast; use correct rvalue cast. + 2003-09-02 Thomas Fitzsimmons * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Add width @@ -26,6 +31,7 @@ * java/util/logging/LogManager.java: create handlers * java/util/logging/SimpleFormatter.java: print souceClassName and sourceMethodName + 2003-08-28 Mohan Embar * win32.cc: fixed tab, indentation and whitespace diff --git a/libjava/gnu/java/awt/natEmbeddedWindow.cc b/libjava/gnu/java/awt/natEmbeddedWindow.cc index 14aa30f..79cdd67 100644 --- a/libjava/gnu/java/awt/natEmbeddedWindow.cc +++ b/libjava/gnu/java/awt/natEmbeddedWindow.cc @@ -8,10 +8,11 @@ details. */ #include #include +#include void gnu::java::awt::EmbeddedWindow::setWindowPeer (gnu::java::awt::peer::EmbeddedWindowPeer* w) { if (!peer) - (::java::lang::Object*) peer = (::java::lang::Object*) w; + peer = reinterpret_cast< ::java::awt::peer::ComponentPeer *> (w); } -- cgit v1.1