diff options
author | Ran Benita <ran@unusedvar.com> | 2019-11-02 13:31:44 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-11-08 12:13:31 +0200 |
commit | 2af474e8d07eaa92a93953024685c66d1dbc15f5 (patch) | |
tree | c2e0de98cb0df1ed66d61d6db04743ff62292bfb /src/atom.h | |
parent | 31e561fca9f2d6c9a0d0cc771d2bf77e6131ecdf (diff) | |
download | xorg-lib-libxkbcommon-2af474e8d07eaa92a93953024685c66d1dbc15f5.tar.gz |
parser: get rid of "stealing" atoms
This requires (well, at least implemented by) casting away `const` which
is undefined behavior, and clang started to warn about it.
The micro optimization didn't save too many allocations, anyway.
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src/atom.h')
-rw-r--r-- | src/atom.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -40,8 +40,7 @@ xkb_atom_t atom_lookup(struct atom_table *table, const char *string, size_t len); xkb_atom_t -atom_intern(struct atom_table *table, const char *string, size_t len, - bool steal); +atom_intern(struct atom_table *table, const char *string, size_t len); const char * atom_text(struct atom_table *table, xkb_atom_t atom); |