aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/PropSet.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/PropSet.h')
-rw-r--r--include/PropSet.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/PropSet.h b/include/PropSet.h
index ed580ee96..16b460ed8 100644
--- a/include/PropSet.h
+++ b/include/PropSet.h
@@ -107,21 +107,18 @@ public:
}
};
-unsigned int HashString(const char *s);
-
struct Property {
unsigned int hash;
char *key;
char *val;
- Property() : hash(0), key(0), val(0) {}
+ Property *next;
+ Property() : hash(0), key(0), val(0), next(0) {}
};
class PropSet {
private:
- Property *properties;
- int size;
- int used;
- void EnsureCanAddEntry();
+ enum { hashRoots=31 };
+ Property *props[hashRoots];
public:
PropSet *superPS;
PropSet();