[glibmm] Gio::ActionGroup: Remove a nonsensical check.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::ActionGroup: Remove a nonsensical check.
- Date: Mon, 14 Oct 2013 08:13:24 +0000 (UTC)
commit c619be2fadae1b5a87151db0b0adddf55584084a
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Oct 14 10:11:25 2013 +0200
Gio::ActionGroup: Remove a nonsensical check.
* gio/src/actiongroup.hg: get_action_state_hint():
Remove a wrongly copy/pasted g_return_if_fail() line that
causes a compiler error when the template is actually used.
Ideally we would have tests for uses of templated methods.
Bug #709963 (Johannes Meng, David Evans)
gio/src/actiongroup.hg | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/actiongroup.hg b/gio/src/actiongroup.hg
index 4d706d7..434b7fa 100644
--- a/gio/src/actiongroup.hg
+++ b/gio/src/actiongroup.hg
@@ -184,9 +184,6 @@ void ActionGroup::get_action_state_hint(const Glib::ustring& action_name, T_Valu
typedef Glib::Variant<T_Value> type_glib_variant;
- g_return_if_fail(
- g_variant_type_equal(g_action_get_state_type(const_cast<GAction*>(gobj())),
type_glib_variant::variant_type().gobj()));
-
const Glib::VariantBase variantBase = get_action_state_hint_variant(action_name);
// We can't check the type (a range) that will be returned before getting the range hint.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]