[vlc-commits] Freetype: use NULL instead of "" for empty longtext

Jean-Baptiste Kempf git at videolan.org
Mon Oct 31 00:42:31 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 30 00:34:30 2011 +0200| [2248e8678e484c085d75462c4d14466dfb9ed15d] | committer: Jean-Baptiste Kempf

Freetype: use NULL instead of "" for empty longtext

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2248e8678e484c085d75462c4d14466dfb9ed15d
---

 modules/text_renderer/freetype.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 0b4b6ae..1e83a68 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -192,41 +192,41 @@ vlc_module_begin ()
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
 
-    add_bool( "freetype-bold", false, BOLD_TEXT, "", false )
+    add_bool( "freetype-bold", false, BOLD_TEXT, NULL, false )
         change_safe()
 
     add_integer_with_range( "freetype-background-opacity", 0, 0, 255,
-                            BG_OPACITY_TEXT, "", false )
+                            BG_OPACITY_TEXT, NULL, false )
         change_safe()
     add_rgb( "freetype-background-color", 0x00000000, BG_COLOR_TEXT,
-                 "", false )
+             NULL, false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
 
     add_integer_with_range( "freetype-outline-opacity", 255, 0, 255,
-                            OUTLINE_OPACITY_TEXT, "", false )
+                            OUTLINE_OPACITY_TEXT, NULL, false )
         change_safe()
     add_rgb( "freetype-outline-color", 0x00000000, OUTLINE_COLOR_TEXT,
-                 "", false )
+             NULL, false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
     add_integer_with_range( "freetype-outline-thickness", 4, 0, 50, OUTLINE_THICKNESS_TEXT,
-                 "", false )
+             NULL, false )
         change_integer_list( pi_outline_thickness, ppsz_outline_thickness )
         change_safe()
 
     add_integer_with_range( "freetype-shadow-opacity", 128, 0, 255,
-                            SHADOW_OPACITY_TEXT, "", false )
+                            SHADOW_OPACITY_TEXT, NULL, false )
         change_safe()
     add_rgb( "freetype-shadow-color", 0x00000000, SHADOW_COLOR_TEXT,
-                 "", false )
+             NULL, false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
         change_safe()
     add_float_with_range( "freetype-shadow-angle", -45, -360, 360,
-                          SHADOW_ANGLE_TEXT, "", false )
+                          SHADOW_ANGLE_TEXT, NULL, false )
         change_safe()
     add_float_with_range( "freetype-shadow-distance", 0.06, 0.0, 1.0,
-                          SHADOW_DISTANCE_TEXT, "", false )
+                          SHADOW_DISTANCE_TEXT, NULL, false )
         change_safe()
 
     add_obsolete_integer( "freetype-effect" );



More information about the vlc-commits mailing list