added const qualifier.

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

	* libgimp/gimpproceduraldb.[ch] (gimp_procedural_db_set_data):
	added const qualifier.
This commit is contained in:
Sven Neumann 2006-05-02 08:50:24 +00:00 committed by Sven Neumann
parent 123b9283d7
commit f5848c6c42
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
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>
* fileicon.ico

View File

@ -142,7 +142,7 @@ gimp_procedural_db_get_data (const gchar *identifier,
&hack);
if (hack)
{
memcpy (data, (gpointer) hack, size * sizeof (guint8));
memcpy (data, (gconstpointer) hack, size * sizeof (guint8));
g_free (hack);
}
@ -164,9 +164,9 @@ gimp_procedural_db_get_data (const gchar *identifier,
* Returns: TRUE on success.
*/
gboolean
gimp_procedural_db_set_data (const gchar *identifier,
gpointer data,
guint32 bytes)
gimp_procedural_db_set_data (const gchar *identifier,
gconstpointer data,
guint32 bytes)
{
return _gimp_procedural_db_set_data (identifier,
bytes,

View File

@ -41,7 +41,7 @@ gboolean gimp_procedural_db_proc_info (const gchar *procedure,
gboolean gimp_procedural_db_get_data (const gchar *identifier,
gpointer data);
gboolean gimp_procedural_db_set_data (const gchar *identifier,
gpointer data,
gconstpointer data,
guint32 bytes);