updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-qt4 / qt.patch
blob1728670761c4df4f7ef3651172f82b6144be7e83
1 --- src/qt4-qtruby-1.4.10/ruby/qtruby/src/Qt.cpp 2008-04-30 11:58:31.000000000 +0200
2 +++ Qt.cpp 2008-08-04 18:47:52.000000000 +0200
3 @@ -693,7 +693,7 @@
4 VALUE
5 qvariant_value(VALUE /*self*/, VALUE variant_value_klass, VALUE variant_value)
7 - char * classname = rb_class2name(variant_value_klass);
8 + const char * classname = rb_class2name(variant_value_klass);
9 smokeruby_object *o = value_obj_info(variant_value);
10 if (o == 0 || o->ptr == 0) {
11 return Qnil;
12 @@ -809,7 +809,7 @@
16 - char * classname = rb_obj_classname(argv[0]);
17 + const char * classname = rb_obj_classname(argv[0]);
18 smokeruby_object *o = value_obj_info(argv[0]);
19 if (o == 0 || o->ptr == 0) {
20 // Assume the Qt::Variant can be created with a
21 @@ -872,7 +872,7 @@
22 const char *
23 get_VALUEtype(VALUE ruby_value)
25 - char * classname = rb_obj_classname(ruby_value);
26 + const char * classname = rb_obj_classname(ruby_value);
27 const char *r = "";
28 if (ruby_value == Qnil)
29 r = "u";
30 @@ -1760,7 +1760,7 @@
33 static QByteArray *
34 -find_cached_selector(int argc, VALUE * argv, VALUE klass, char * methodName)
35 +find_cached_selector(int argc, VALUE * argv, VALUE klass, const char * methodName)
37 // Look in the cache
38 static QByteArray * mcid = 0;
39 @@ -1797,7 +1797,7 @@
40 static VALUE
41 method_missing(int argc, VALUE * argv, VALUE self)
43 - char * methodName = rb_id2name(SYM2ID(argv[0]));
44 + const char * methodName = rb_id2name(SYM2ID(argv[0]));
45 VALUE klass = rb_funcall(self, rb_intern("class"), 0);
47 // Look for 'thing?' methods, and try to match isThing() or hasThing() in the Smoke runtime
48 @@ -1847,7 +1847,7 @@
50 VALUE retval = rb_funcall2(qt_internal_module, rb_intern("do_method_missing"), argc+3, temp_stack);
51 if (_current_method == -1) {
52 - char * op = rb_id2name(SYM2ID(argv[0]));
53 + const char * op = rb_id2name(SYM2ID(argv[0]));
54 if ( qstrcmp(op, "-") == 0
55 || qstrcmp(op, "+") == 0
56 || qstrcmp(op, "/") == 0
57 @@ -1954,7 +1954,7 @@
58 class_method_missing(int argc, VALUE * argv, VALUE klass)
60 VALUE result = Qnil;
61 - char * methodName = rb_id2name(SYM2ID(argv[0]));
62 + const char * methodName = rb_id2name(SYM2ID(argv[0]));
63 VALUE * temp_stack = ALLOCA_N(VALUE, argc+3);
64 temp_stack[0] = rb_str_new2("Qt");
65 temp_stack[1] = rb_str_new2(methodName);