aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-09-04 16:58:13 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-09-04 16:58:13 +0000
commit7f09034f0fd24fdbb709d8fccb8df1c5b3a0eed6 (patch)
tree66e205575b06fcfae965991b44f9d6b833e2a502
parent5f1e32fad7bcbc4c8efd06445443bf8e567150a1 (diff)
downloadgcc-7f09034f0fd24fdbb709d8fccb8df1c5b3a0eed6.zip
gcc-7f09034f0fd24fdbb709d8fccb8df1c5b3a0eed6.tar.gz
gcc-7f09034f0fd24fdbb709d8fccb8df1c5b3a0eed6.tar.bz2
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
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/gnu/java/awt/natEmbeddedWindow.cc3
2 files changed, 8 insertions, 1 deletions
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 <tromey@redhat.com>
+
+ * gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed
+ lvalue cast; use correct rvalue cast.
+
2003-09-02 Thomas Fitzsimmons <fitzsim@redhat.com>
* 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 <gnustuff@thisiscool.com>
* 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 <gnu/java/awt/EmbeddedWindow.h>
#include <gnu/java/awt/peer/EmbeddedWindowPeer.h>
+#include <java/awt/peer/ComponentPeer.h>
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);
}