app/text: Fix const warning

You shouldn't rely on GObjects being `const`, since a reference count
operation does not respect that. That being said, this fixes a warning,
for a keyword that seems to be redundant here.
This commit is contained in:
Niels De Graef 2020-05-15 00:23:42 +02:00
parent 9fe589734b
commit 484e9afb22
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ gimp_text_parasite_name (void)
}
GimpParasite *
gimp_text_to_parasite (const GimpText *text)
gimp_text_to_parasite (GimpText *text)
{
g_return_val_if_fail (GIMP_IS_TEXT (text), NULL);

View file

@ -23,7 +23,7 @@
const gchar * gimp_text_parasite_name (void) G_GNUC_CONST;
GimpParasite * gimp_text_to_parasite (const GimpText *text);
GimpParasite * gimp_text_to_parasite (GimpText *text);
GimpText * gimp_text_from_parasite (const GimpParasite *parasite,
GError **error);