From b1dc62a554ce4f54330ceef1c2b625463ffac642 Mon Sep 17 00:00:00 2001 From: Shiz Date: Tue, 12 Feb 2013 18:29:58 +0100 Subject: [PATCH] Fixed tiny style issues. --- src/SFML/Window/OSX/cpp_objc_conversion.mm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/SFML/Window/OSX/cpp_objc_conversion.mm b/src/SFML/Window/OSX/cpp_objc_conversion.mm index a510fc08b..4b619a58b 100644 --- a/src/SFML/Window/OSX/cpp_objc_conversion.mm +++ b/src/SFML/Window/OSX/cpp_objc_conversion.mm @@ -47,16 +47,12 @@ NSString* sfStringToNSString(sf::String const& string) sf::Uint32 length = string.getSize() * sizeof(sf::Uint32); const void* data = reinterpret_cast(string.getData()); - NSStringEncoding sfEncoding; + NSStringEncoding encoding; if (NSHostByteOrder() == NS_LittleEndian) - { - sfEncoding = NSUTF32LittleEndianStringEncoding; - } + encoding = NSUTF32LittleEndianStringEncoding; else - { - sfEncoding = NSUTF32BigEndianStringEncoding; - } + encoding = NSUTF32BigEndianStringEncoding; - NSString* str = [[NSString alloc] initWithBytes:data length:length encoding:sfEncoding]; + NSString* str = [[NSString alloc] initWithBytes:data length:length encoding:encoding]; return str; }