summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 05:36:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 05:36:29 +0000
commit30f69beebaf526dd03dc494d85c4dba85bbe8368 (patch)
tree347afacaacffcb98f357f23a3dc9b1e0bb61eef4 /ext
parent2320264ef6ad12b824940e4aa223b662e5a308fa (diff)
tkutil.c: inherit Data
* ext/tk/tkutil/tkutil.c: use Data as super class, not to inherit useless methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/tkutil/tkutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c
index e9310244c8..3880e731f2 100644
--- a/ext/tk/tkutil/tkutil.c
+++ b/ext/tk/tkutil/tkutil.c
@@ -1754,10 +1754,10 @@ Init_tkutil(void)
ID_call = rb_intern("call");
/* --------------------- */
- cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cObject);
+ cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cData);
rb_define_singleton_method(cCB_SUBST, "inspect", cbsubst_inspect, 0);
- cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cObject);
+ cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cData);
rb_define_singleton_method(cSUBST_INFO, "inspect", substinfo_inspect, 0);
ID_SUBST_INFO = rb_intern("SUBST_INFO");