projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't try to translate the standard encoding names
[wxWidgets.git]
/
src
/
common
/
hash.cpp
diff --git
a/src/common/hash.cpp
b/src/common/hash.cpp
index 900219c6d1197056c7c3ef23503e024c61b72b9e..2909e481837ec5223adf08894e59b5404082ad23 100644
(file)
--- a/
src/common/hash.cpp
+++ b/
src/common/hash.cpp
@@
-681,11
+681,14
@@
void wxHashTable::DeleteContents (bool flag)
void wxHashTable::Clear ()
{
- int i;
-
for (i = 0; i < n; i++
)
+
int i;
+
if (hash_table
)
{
- if (hash_table[i])
- hash_table[i]->Clear ();
+ for (i = 0; i < n; i++)
+ {
+ if (hash_table[i])
+ hash_table[i]->Clear ();
+ }
}
m_count = 0;
}