[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kross/ruby
From: Sebastian Sauer <mail () dipe ! org>
Date: 2006-12-06 10:27:12
Message-ID: 1165400832.335468.22050.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 610982 by sebsauer:
be sure to have here always a string.
M +4 -0 rubyvariant.h
--- trunk/koffice/libs/kross/ruby/rubyvariant.h #610981:610982
@@ -228,6 +228,10 @@
return s.isNull() ? rb_str_new2("") : rb_str_new2(s.toLatin1().data());
}
inline static QString toVariant(VALUE value) {
+ if( TYPE(value) != T_STRING ) {
+ rb_raise(rb_eTypeError, "QString must be a string");
+ return QString();
+ }
return STR2CSTR(value);
}
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic