Commit f5848c6c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added const qualifier.

2006-05-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpproceduraldb.[ch] (gimp_procedural_db_set_data):
	added const qualifier.
parent 123b9283
2006-05-02 Sven Neumann <sven@gimp.org>
* libgimp/gimpproceduraldb.[ch] (gimp_procedural_db_set_data):
added const qualifier.
2006-05-02 Sven Neumann <sven@gimp.org> 2006-05-02 Sven Neumann <sven@gimp.org>
* fileicon.ico * fileicon.ico
......
...@@ -142,7 +142,7 @@ gimp_procedural_db_get_data (const gchar *identifier, ...@@ -142,7 +142,7 @@ gimp_procedural_db_get_data (const gchar *identifier,
&hack); &hack);
if (hack) if (hack)
{ {
memcpy (data, (gpointer) hack, size * sizeof (guint8)); memcpy (data, (gconstpointer) hack, size * sizeof (guint8));
g_free (hack); g_free (hack);
} }
...@@ -164,9 +164,9 @@ gimp_procedural_db_get_data (const gchar *identifier, ...@@ -164,9 +164,9 @@ gimp_procedural_db_get_data (const gchar *identifier,
* Returns: TRUE on success. * Returns: TRUE on success.
*/ */
gboolean gboolean
gimp_procedural_db_set_data (const gchar *identifier, gimp_procedural_db_set_data (const gchar *identifier,
gpointer data, gconstpointer data,
guint32 bytes) guint32 bytes)
{ {
return _gimp_procedural_db_set_data (identifier, return _gimp_procedural_db_set_data (identifier,
bytes, bytes,
......
...@@ -41,7 +41,7 @@ gboolean gimp_procedural_db_proc_info (const gchar *procedure, ...@@ -41,7 +41,7 @@ gboolean gimp_procedural_db_proc_info (const gchar *procedure,
gboolean gimp_procedural_db_get_data (const gchar *identifier, gboolean gimp_procedural_db_get_data (const gchar *identifier,
gpointer data); gpointer data);
gboolean gimp_procedural_db_set_data (const gchar *identifier, gboolean gimp_procedural_db_set_data (const gchar *identifier,
gpointer data, gconstpointer data,
guint32 bytes); guint32 bytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment