diff --git a/bindings/ruby/sfml-system/system/Vector2.cpp b/bindings/ruby/sfml-system/system/Vector2.cpp index fdbb73a09..5043c437d 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 64d3fa598..d75bc02ab 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 b9373ee06..cdcf61036 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; }