summaryrefslogtreecommitdiff
path: root/src/atom.h
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-11-02 13:31:44 +0200
committerRan Benita <ran@unusedvar.com>2019-11-08 12:13:31 +0200
commit2af474e8d07eaa92a93953024685c66d1dbc15f5 (patch)
treec2e0de98cb0df1ed66d61d6db04743ff62292bfb /src/atom.h
parent31e561fca9f2d6c9a0d0cc771d2bf77e6131ecdf (diff)
downloadxorg-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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/atom.h b/src/atom.h
index 1bf8e49..f936911 100644
--- a/src/atom.h
+++ b/src/atom.h
@@ -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);