merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0037-sal-strintern-speed-fix.diff
blob4c0b7189387b56e336aa5eb7e51dbd46240de720
1 --- sal/rtl/source/hash.cxx
2 +++ sal/rtl/source/hash.cxx
3 @@ -301,6 +301,9 @@
4 pHash->pData[n++] = NULL;
5 pHash->nEntries--;
7 + if (n >= pHash->nSize)
8 + n = 0;
10 while ((pHashStr = pHash->pData[n]) != NULL) {
11 pHash->pData[n] = NULL;
12 // FIXME: rather unsophisticated and N^2 in chain-length, but robust.