]> git.sesse.net Git - vlc/commitdiff
skins2: fix compiler warnings (missing ())
authorRémi Duraffort <ivoire@videolan.org>
Thu, 9 Sep 2010 18:34:30 +0000 (20:34 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 9 Sep 2010 18:34:30 +0000 (20:34 +0200)
modules/gui/skins2/src/ft2_font.cpp

index 60d21cb4842fabdf902a54fde3e1bbf459556e3a..51a9ade572247b8f01b698d23a90e4437e42202e 100644 (file)
@@ -55,7 +55,7 @@ bool FT2Font::init()
 {
     unsigned err;
 
-    if( err = FT_Init_FreeType( &m_lib ) )
+    if( ( err = FT_Init_FreeType( &m_lib ) ) )
     {
         msg_Err( getIntf(), "failed to initialize freetype (%s)",
                  ft2_strerror( err ) );
@@ -113,7 +113,7 @@ bool FT2Font::init()
     }
 
     // Select the charset
-    if( err = FT_Select_Charmap( m_face, ft_encoding_unicode ) )
+    if( ( err = FT_Select_Charmap( m_face, ft_encoding_unicode ) ) )
     {
         msg_Err( getIntf(), "font %s has no UNICODE table (%s)",
                  m_name.c_str(), ft2_strerror(err) );
@@ -121,7 +121,7 @@ bool FT2Font::init()
     }
 
     // Set the pixel size
-    if( err = FT_Set_Pixel_Sizes( m_face, 0, m_size ) )
+    if( ( err = FT_Set_Pixel_Sizes( m_face, 0, m_size ) ) )
     {
         msg_Warn( getIntf(), "cannot set a pixel size of %d for %s (%s)",
                   m_size, m_name.c_str(), ft2_strerror(err) );