diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-03-18 12:50:17 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-03-18 12:50:17 +0100 |
commit | b08d1cbb1f455971fd1cd82f1e59d20937742187 (patch) | |
tree | 4ce718107c74bcc22b0453042454d011b32e4958 /lib/kross/ruby | |
parent | cbc1062ce2a32d52e55445d303b1adb4078f87ec (diff) | |
download | koffice-b08d1cbb1f455971fd1cd82f1e59d20937742187.tar.gz koffice-b08d1cbb1f455971fd1cd82f1e59d20937742187.zip |
Fix FTBFS with Ruby 2.5
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'lib/kross/ruby')
-rw-r--r-- | lib/kross/ruby/rubyscript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kross/ruby/rubyscript.cpp b/lib/kross/ruby/rubyscript.cpp index 2469706a..381785ff 100644 --- a/lib/kross/ruby/rubyscript.cpp +++ b/lib/kross/ruby/rubyscript.cpp @@ -105,6 +105,7 @@ void RubyScript::compile() #endif // HAVE_RUBY_1_9 VALUE src = RubyExtension::toVALUE( m_scriptcontainer->getCode() ); StringValue(src); + VALUE name = RubyExtension::toVALUE( m_scriptcontainer->getName() ); #ifdef HAVE_RUBY_1_9 // FIXME @@ -113,7 +114,7 @@ void RubyScript::compile() rb_thread_critical = Qtrue; ruby_in_eval++; #endif // HAVE_RUBY_1_9 - rb_funcall(d->m_script, rb_intern("module_eval"), 2, src, (char*) m_scriptcontainer->getName().latin1()); + rb_funcall(d->m_script, rb_intern("module_eval"), 2, src, name); #ifdef HAVE_RUBY_1_9 // FIXME #else // HAVE_RUBY_1_9 |