diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 04:09:59 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 04:09:59 +0000 |
commit | b00e86cf9afb44beb3f8fd51e85318505cabaa89 (patch) | |
tree | 876cf867693d3b57b56b82bf8645e9cdf157c76c /views | |
parent | b57a28bcc8a8860182dd1de7869aed05c0aa04c0 (diff) | |
download | chromium_src-b00e86cf9afb44beb3f8fd51e85318505cabaa89.zip chromium_src-b00e86cf9afb44beb3f8fd51e85318505cabaa89.tar.gz chromium_src-b00e86cf9afb44beb3f8fd51e85318505cabaa89.tar.bz2 |
Fixes compile warning. If you have a better suggestion for this, let
me know. Here's the warning I was getting without this:
dereferencing type-punned pointer will break strict-aliasing rules
BUG=none
TEST=none
TBR=derat
Review URL: http://codereview.chromium.org/261005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/widget_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 299eea5..b53cdc2 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -203,9 +203,9 @@ void WidgetGtk::ActiveWindowChanged(GdkWindow* active_window) { if (!is_active_ && active_window && type_ != TYPE_CHILD) { // We're not active, but the force the window to be rendered as active if // a child window is transient to us. - GtkWidget* widget = NULL; - gdk_window_get_user_data(active_window, - reinterpret_cast<gpointer*>(&widget)); + gpointer data = NULL; + gdk_window_get_user_data(active_window, &data); + GtkWidget* widget = reinterpret_cast<GtkWidget*>(data); is_active_ = (widget && GTK_IS_WINDOW(widget) && gtk_window_get_transient_for(GTK_WINDOW(widget)) == GTK_WINDOW( |