diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-24 19:54:20 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-24 19:54:20 +0100 |
commit | 2add69b7f08f19ae2687276ebafcf6989915aa69 (patch) | |
tree | be0e81f4c8477967ed3e448c93519fd9f0afe8ef /symbols.h | |
parent | a532338ca642ed386270047aefc56ed11ef120d3 (diff) | |
download | sciteco-2add69b7f08f19ae2687276ebafcf6989915aa69.tar.gz |
cache GLists corresponding to symbol lists
Diffstat (limited to 'symbols.h')
-rw-r--r-- | symbols.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -14,9 +14,16 @@ private: const Entry *entries; gint size; + /* for auto-completions */ + GList *list; + public: SymbolList(const Entry *_entries = NULL, gint _size = 0) - : entries(_entries), size(_size) {} + : entries(_entries), size(_size), list(NULL) {} + ~SymbolList() + { + g_list_free(list); + } gint lookup(const gchar *name, const gchar *prefix = "", bool case_sensitive = false); |