Use mapfile directly instead of buffer

This commit is contained in:
Jeff Doozan
2020-12-21 17:10:02 -05:00
parent d38f8f13c9
commit 994c1c7ae6
2 changed files with 5 additions and 13 deletions

View File

@@ -102,17 +102,14 @@ public:
class SynFile
{
public:
SynFile()
: syndatabuf(nullptr)
{
}
~SynFile() { g_free(syndatabuf); }
SynFile() {}
~SynFile() {}
bool load(const std::string &url, gulong wc);
bool lookup(const char *str, glong &idx);
const gchar *get_key(glong idx) { return synlist[idx]; }
private:
gchar *syndatabuf;
MapFile synfile;
std::vector<gchar *> synlist;
};