[gegl] graph: remove some typechecks when running visitor
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] graph: remove some typechecks when running visitor
- Date: Mon, 23 Apr 2012 13:38:00 +0000 (UTC)
commit 26dd43d69e522c83ec2dc5777dd29fc7237368c4
Author: Ãyvind KolÃs <pippin gimp org>
Date: Mon Apr 23 02:07:29 2012 +0200
graph: remove some typechecks when running visitor
gegl/graph/gegl-pad.c | 2 +-
gegl/graph/gegl-visitable.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/graph/gegl-pad.c b/gegl/graph/gegl-pad.c
index 1422e25..078bf28 100644
--- a/gegl/graph/gegl-pad.c
+++ b/gegl/graph/gegl-pad.c
@@ -251,7 +251,7 @@ static void
visitable_accept (GeglVisitable *visitable,
GeglVisitor *visitor)
{
- gegl_visitor_visit_pad (visitor, GEGL_PAD (visitable));
+ gegl_visitor_visit_pad (visitor, (GeglPad*) (visitable));
}
static GSList *
diff --git a/gegl/graph/gegl-visitable.c b/gegl/graph/gegl-visitable.c
index e1dcfb7..a0f6924 100644
--- a/gegl/graph/gegl-visitable.c
+++ b/gegl/graph/gegl-visitable.c
@@ -63,7 +63,7 @@ gegl_visitable_accept (GeglVisitable *interface,
{
GeglVisitableClass *interface_class;
- g_return_if_fail (GEGL_IS_VISITABLE (interface));
+ //g_return_if_fail (GEGL_IS_VISITABLE (interface));
interface_class = GEGL_VISITABLE_GET_CLASS (interface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]