diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2007-08-15 15:46:04 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-08-15 15:46:04 +0800 |
commit | ec96881f6e30e029c308eefe982a30da6fdca779 (patch) | |
tree | 6c540eadd212739a51ccc773a983d393d95b94c7 /embed/mozilla/EphyHeaderSniffer.cpp | |
parent | cb1f9910f188e2db04be62a2c41fbe95255348c3 (diff) | |
download | gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar.gz gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar.bz2 gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar.lz gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar.xz gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.tar.zst gsoc2013-epiphany-ec96881f6e30e029c308eefe982a30da6fdca779.zip |
Fix strict-aliasing warnings, patch by Cosimo Cecchi. Happy 10 years
2007-08-15 Diego Escalante Urrelo <diegoe@gnome.org>
* embed/mozilla/EphyUtils.cpp:
* embed/mozilla/EphyHeaderSniffer.cpp:
* embed/mozilla/MozDownload.cpp:
Fix strict-aliasing warnings, patch by Cosimo Cecchi.
Happy 10 years GNOME!. Fixes bug #433173.
svn path=/trunk/; revision=7274
Diffstat (limited to 'embed/mozilla/EphyHeaderSniffer.cpp')
-rw-r--r-- | embed/mozilla/EphyHeaderSniffer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp index 6ef9318de..722ea8672 100644 --- a/embed/mozilla/EphyHeaderSniffer.cpp +++ b/embed/mozilla/EphyHeaderSniffer.cpp @@ -98,8 +98,9 @@ EphyHeaderSniffer::EphyHeaderSniffer (nsIWebBrowserPersist* aPersist, MozillaEmb watcher->GetNewAuthPrompter (nsnull, getter_AddRefs (mAuthPrompt)); mSingle = single; + EphyEmbedSingle **cache_ptr = &mSingle; g_object_add_weak_pointer (G_OBJECT (mSingle), - (gpointer *)&mSingle); + (gpointer *) cache_ptr); } EphyHeaderSniffer::~EphyHeaderSniffer() @@ -108,8 +109,9 @@ EphyHeaderSniffer::~EphyHeaderSniffer() if (mSingle) { + EphyEmbedSingle **cache_ptr = &mSingle; g_object_remove_weak_pointer (G_OBJECT (mSingle), - (gpointer *)&mSingle); + (gpointer *) cache_ptr); } } |