[gtkmm] Popover: Simplify some _CONVERSION() lines.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Popover: Simplify some _CONVERSION() lines.
- Date: Fri, 31 Jan 2014 09:07:43 +0000 (UTC)
commit 7e9cb7eddf55133b3ac48d62c8f7d098b28c472e
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jan 31 10:05:52 2014 +0100
Popover: Simplify some _CONVERSION() lines.
The reinterpret casts were unnecessary.
gtk/src/popover.hg | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/popover.hg b/gtk/src/popover.hg
index aa49993..e852c8e 100644
--- a/gtk/src/popover.hg
+++ b/gtk/src/popover.hg
@@ -65,12 +65,11 @@ public:
_WRAP_METHOD(Widget* get_relative_to(), gtk_popover_get_relative_to)
_WRAP_METHOD(const Widget* get_relative_to() const, gtk_popover_get_relative_to, constversion)
-#m4 _CONVERSION(`Cairo::RectangleInt&',`cairo_rectangle_int_t*',
`reinterpret_cast<cairo_rectangle_int_t*>(&$3)')
-#m4 _CONVERSION(`const Cairo::RectangleInt&',`cairo_rectangle_int_t*', `const_cast<cairo_rectangle_int_t*
(reinterpret_cast<const cairo_rectangle_int_t* >(&$3))')
-
+#m4 _CONVERSION(`const Cairo::RectangleInt&',`cairo_rectangle_int_t*',
`const_cast<cairo_rectangle_int_t*>(&($3))')
//This cannot take NULL to mean unset.
_WRAP_METHOD(void set_pointing_to(const Cairo::RectangleInt& rect), gtk_popover_set_pointing_to)
+#m4 _CONVERSION(`Cairo::RectangleInt&',`cairo_rectangle_int_t*', `&($3)')
_WRAP_METHOD(bool get_pointing_to(Cairo::RectangleInt& rect) const, gtk_popover_get_pointing_to)
_WRAP_METHOD(void set_position(PositionType position = POS_TOP), gtk_popover_set_position)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]