mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Optimize the common cases (init == NULL or init == "") a bit. replace uses
2003-03-30 Matthias Clasen <maclas@gmx.de> * glib/gstring.c (g_string_new): Optimize the common cases (init == NULL or init == "") a bit. * glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c, glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c, glib/gspawn.c, gobject/gvaluetransform.c: replace uses of g_string_new ("") by g_string_new (NULL). (#106973, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
cb0e4de11c
commit
6710fd6e06
@@ -210,7 +210,7 @@ value_transform_flags_string (const GValue *src_value,
|
||||
|
||||
if (flags_value)
|
||||
{
|
||||
GString *gstring = g_string_new ("");
|
||||
GString *gstring = g_string_new (NULL);
|
||||
guint v_flags = src_value->data[0].v_uint;
|
||||
|
||||
do
|
||||
|
Reference in New Issue
Block a user