[glib] ghash: minor docs tweak
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] ghash: minor docs tweak
- Date: Thu, 11 Dec 2014 23:50:19 +0000 (UTC)
commit de657238774755eb58a1c6fbf9123f978fb828e7
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Dec 11 18:49:16 2014 -0500
ghash: minor docs tweak
We should not advise people to cast the result of
g_hash_table_get_keys_as_array() to a type that looks suitable for use
with g_strfreev(). Advise to use (const gchar **) instead.
glib/ghash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/ghash.c b/glib/ghash.c
index b42dd14..913f739 100644
--- a/glib/ghash.c
+++ b/glib/ghash.c
@@ -1736,7 +1736,7 @@ g_hash_table_get_keys (GHashTable *hash_table)
* %NULL was used as the value for a key.
*
* Note: in the common case of a string-keyed #GHashTable, the return
- * value of this function can be conveniently cast to (gchar **).
+ * value of this function can be conveniently cast to (const gchar **).
*
* You should always free the return result with g_free(). In the
* above-mentioned case of a string-keyed hash table, it may be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]