[gimp] app/text: Fix const warning
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app/text: Fix const warning
- Date: Thu, 14 May 2020 22:26:46 +0000 (UTC)
commit 484e9afb222f9e993b7e138f4ad14413ff814052
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri May 15 00:23:42 2020 +0200
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.
app/text/gimptext-parasite.c | 2 +-
app/text/gimptext-parasite.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/text/gimptext-parasite.c b/app/text/gimptext-parasite.c
index 0b8c617451..b07e66a53c 100644
--- a/app/text/gimptext-parasite.c
+++ b/app/text/gimptext-parasite.c
@@ -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);
diff --git a/app/text/gimptext-parasite.h b/app/text/gimptext-parasite.h
index d834309e47..2e2847a497 100644
--- a/app/text/gimptext-parasite.h
+++ b/app/text/gimptext-parasite.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]