aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.h')
-rw-r--r--src/help.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/help.h b/src/help.h
index db78979..7ce7ea2 100644
--- a/src/help.h
+++ b/src/help.h
@@ -30,29 +30,21 @@
namespace SciTECO {
-class HelpIndex : public RBTree {
+class HelpIndex : private RBTreeStringCase {
public:
- class Topic : public RBTree::RBEntry {
+ class Topic : public RBEntryOwnString {
public:
- gchar *name;
gchar *filename;
tecoInt pos;
- Topic(const gchar *_name, const gchar *_filename = NULL, tecoInt _pos = 0)
- : name(g_strdup(_name)),
+ Topic(const gchar *name, const gchar *_filename = NULL, tecoInt _pos = 0)
+ : RBEntryOwnString(name),
filename(_filename ? g_strdup(_filename) : NULL),
pos(_pos) {}
~Topic()
{
- g_free(name);
g_free(filename);
}
-
- int
- operator <(RBEntry &l2)
- {
- return g_ascii_strcasecmp(name, ((Topic &)l2).name);
- }
};
void load(void);