From 1c9e5ff5a2e9b04befc2036886d8ace79c96d222 Mon Sep 17 00:00:00 2001 From: groogy Date: Tue, 16 Nov 2010 09:17:50 +0000 Subject: [PATCH] Concerned changes is that the 'true' values had to be Qtrue or I would be doing an invalid comparison. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1654 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-system/system/Vector2.cpp | 4 ++-- bindings/ruby/sfml-system/system/Vector3.cpp | 4 ++-- bindings/ruby/sfml-window/window/VideoMode.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/ruby/sfml-system/system/Vector2.cpp b/bindings/ruby/sfml-system/system/Vector2.cpp index fdbb73a0..5043c437 100644 --- a/bindings/ruby/sfml-system/system/Vector2.cpp +++ b/bindings/ruby/sfml-system/system/Vector2.cpp @@ -48,13 +48,13 @@ VALUE globalVector2Class; */ VALUE Vector2_ForceType( VALUE someValue ) { - if( rb_obj_is_kind_of( someValue, rb_cArray ) == true ) + if( rb_obj_is_kind_of( someValue, rb_cArray ) == Qtrue ) { VALUE arg1 = rb_ary_entry( someValue, 0 ); VALUE arg2 = rb_ary_entry( someValue, 1 ); return rb_funcall( globalVector2Class, rb_intern( "new" ), 2, arg1, arg2 ); } - else if( rb_obj_is_kind_of( someValue, globalVector2Class ) == true ) + else if( rb_obj_is_kind_of( someValue, globalVector2Class ) == Qtrue ) { return someValue; } diff --git a/bindings/ruby/sfml-system/system/Vector3.cpp b/bindings/ruby/sfml-system/system/Vector3.cpp index 64d3fa59..d75bc02a 100644 --- a/bindings/ruby/sfml-system/system/Vector3.cpp +++ b/bindings/ruby/sfml-system/system/Vector3.cpp @@ -48,14 +48,14 @@ VALUE globalVector3Class; */ VALUE Vector3_ForceType( VALUE someValue ) { - if( rb_obj_is_kind_of( someValue, rb_cArray ) == true ) + if( rb_obj_is_kind_of( someValue, rb_cArray ) == Qtrue ) { VALUE arg1 = rb_ary_entry( someValue, 0 ); VALUE arg2 = rb_ary_entry( someValue, 1 ); VALUE arg3 = rb_ary_entry( someValue, 2 ); return rb_funcall( globalVector3Class, rb_intern( "new" ), 3, arg1, arg2, arg3 ); } - else if( rb_obj_is_kind_of( someValue, globalVector3Class ) == true ) + else if( rb_obj_is_kind_of( someValue, globalVector3Class ) == Qtrue ) { return someValue; } diff --git a/bindings/ruby/sfml-window/window/VideoMode.cpp b/bindings/ruby/sfml-window/window/VideoMode.cpp index b9373ee0..cdcf6103 100644 --- a/bindings/ruby/sfml-window/window/VideoMode.cpp +++ b/bindings/ruby/sfml-window/window/VideoMode.cpp @@ -64,7 +64,7 @@ VALUE globalVideoModeClass; */ VALUE VideoMode_ForceType( VALUE someValue ) { - if( rb_obj_is_kind_of( someValue, rb_cArray ) == true ) + if( rb_obj_is_kind_of( someValue, rb_cArray ) == Qtrue ) { VALUE arg1 = rb_ary_entry( someValue, 0 ); VALUE arg2 = rb_ary_entry( someValue, 1 ); @@ -78,7 +78,7 @@ VALUE VideoMode_ForceType( VALUE someValue ) return rb_funcall( globalVideoModeClass, rb_intern( "new" ), 2, arg1, arg2 ); } } - else if( rb_obj_is_kind_of( someValue, globalVideoModeClass ) == true ) + else if( rb_obj_is_kind_of( someValue, globalVideoModeClass ) == Qtrue ) { return someValue; }