mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-18 13:53:46 +00:00
libgimpconfig: Ensure G_PARAM_STATIC_STRINGS
The `GIMP_CONFIG_PROP_*` macros do not automatically set `G_PARAM_STATIC_STRINGS`, which means each property that uses such a macro does not have this flag set by default (and almost none set it themselves). By adding `G_PARAM_STATIC_STRINGS` to `GIMP_CONFIG_PARAM_FLAGS`, we can prevent this from happening, which should lead to some unnecessary string copies being prevented.
This commit is contained in:
parent
ce6dfd3194
commit
aefb40c82a
|
@ -65,6 +65,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#define GIMP_CONFIG_PARAM_FLAGS (G_PARAM_READWRITE | \
|
||||
G_PARAM_CONSTRUCT | \
|
||||
G_PARAM_STATIC_STRINGS | \
|
||||
GIMP_CONFIG_PARAM_SERIALIZE)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue