blob: 8fb25be3076e4dfe03267d601ca3502c02f823db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ae,v 1.4 2004/03/22 17:04:13 kristerw Exp $
--- util/RefHash3KeysIdPool.c.orig Mon Mar 22 17:54:00 2004
+++ util/RefHash3KeysIdPool.c Mon Mar 22 17:54:25 2004
@@ -117,9 +117,6 @@
{
initialize(modulus);
- // create default hasher
- fHash = new (fMemoryManager) HashXMLCh();
-
//
// Allocate the initial id pointers array. We don't have to zero them
// out since the fIdCounter value tells us which ones are valid. The
@@ -129,6 +126,9 @@
fIdPtrsCount = 256;
fIdPtrs = (TVal**) fMemoryManager->allocate(fIdPtrsCount * sizeof(TVal*)); //new TVal*[fIdPtrsCount];
fIdPtrs[0] = 0;
+
+ // create default hasher
+ fHash = new (fMemoryManager) HashXMLCh();
}
template <class TVal>
|