From 151d57c49752e49006d37c9634b6576bc4258a71 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 1 Dec 2008 13:06:25 +0000 Subject: [PATCH] Remove unnecessary cast, edit dox for utils_get_setting_string(). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3299 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index a458f62a..62bd57b0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -690,8 +690,8 @@ gboolean utils_get_setting_boolean(GKeyFile *config, const gchar *section, const * @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 @@ gchar *utils_get_setting_string(GKeyFile *config, const gchar *section, const gc if (error) { g_error_free(error); - return (gchar*) g_strdup(default_value); + return g_strdup(default_value); } return tmp; }