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:
Matthias Clasen
2003-03-30 22:02:20 +00:00
committed by Matthias Clasen
parent cb0e4de11c
commit 6710fd6e06
15 changed files with 72 additions and 23 deletions

View File

@@ -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