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.h | |
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.h')
-rw-r--r-- | atspi/atspi-document.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atspi/atspi-document.h b/atspi/atspi-document.h index 5dd228c8..653aca3d 100644 --- a/atspi/atspi-document.h +++ b/atspi/atspi-document.h @@ -48,10 +48,10 @@ struct _AtspiDocument gchar *atspi_document_get_locale (AtspiDocument *obj, GError **error); #ifndef ATSPI_DISABLE_DEPRECATED -gchar *atspi_document_get_attribute_value (AtspiDocument *obj, gchar *attribute, GError **error); +gchar *atspi_document_get_attribute_value (AtspiDocument *obj, const gchar *attribute, GError **error); #endif -gchar *atspi_document_get_document_attribute_value (AtspiDocument *obj, gchar *attribute, GError **error); +gchar *atspi_document_get_document_attribute_value (AtspiDocument *obj, const gchar *attribute, GError **error); #ifndef ATSPI_DISABLE_DEPRECATED GHashTable *atspi_document_get_attributes (AtspiDocument *obj, GError **error); |