diff options
author | Colomban Wendling <cwendling@hypra.fr> | 2023-04-25 12:22:41 +0200 |
---|---|---|
committer | Colomban Wendling <cwendling@hypra.fr> | 2023-04-25 12:22:41 +0200 |
commit | 3ba50db92c23518fb5c0b713e58a8ca21e7994e0 (patch) | |
tree | 9507c19cac86a64c3e5af38c5f684f8757252b10 /atspi/atspi-document.c | |
parent | 758c5830865c1c1b1768cdec099baa140a6c1a25 (diff) | |
download | at-spi2-core-3ba50db92c23518fb5c0b713e58a8ca21e7994e0.tar.gz |
Use const attribute name input in atspi_*_get*_attribute_value()
There is no point in having them mutable, and makes the API look more
awkward and harder to use than it actually is.
Diffstat (limited to 'atspi/atspi-document.c')
-rw-r--r-- | atspi/atspi-document.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atspi/atspi-document.c b/atspi/atspi-document.c index de2ad373..dad05595 100644 --- a/atspi/atspi-document.c +++ b/atspi/atspi-document.c @@ -58,7 +58,7 @@ atspi_document_get_locale (AtspiDocument *obj, GError **error) **/ gchar * atspi_document_get_attribute_value (AtspiDocument *obj, - gchar *attribute, + const gchar *attribute, GError **error) { return atspi_document_get_document_attribute_value (obj, attribute, error); @@ -76,7 +76,7 @@ atspi_document_get_attribute_value (AtspiDocument *obj, **/ gchar * atspi_document_get_document_attribute_value (AtspiDocument *obj, - gchar *attribute, + const gchar *attribute, GError **error) { gchar *retval = NULL; |