Revision: 3299 http://geany.svn.sourceforge.net/geany/?rev=3299&view=rev Author: ntrel Date: 2008-12-01 13:06:25 +0000 (Mon, 01 Dec 2008)
Log Message: ----------- Remove unnecessary cast, edit dox for utils_get_setting_string().
Modified Paths: -------------- trunk/src/utils.c
Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2008-11-30 21:20:34 UTC (rev 3298) +++ trunk/src/utils.c 2008-12-01 13:06:25 UTC (rev 3299) @@ -690,8 +690,8 @@ * @param default_value The default value which will be returned when @c section or @c key * don't exist. * - * @return A newly allocated string, or the given default value if the value could not be - * retrieved. + * @return A newly allocated string, either the value for @a key or a copy of the given + * default value if it could not be retrieved. **/ gchar *utils_get_setting_string(GKeyFile *config, const gchar *section, const gchar *key, const gchar *default_value) @@ -705,7 +705,7 @@ if (error) { g_error_free(error); - return (gchar*) g_strdup(default_value); + return g_strdup(default_value); } return tmp; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.