aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCIterator.h
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-12-11 14:24:03 -0800
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-12-11 14:24:03 -0800
commit475d817e0230342443203f3b9b3dfe2a45a71779 (patch)
tree74803f62785a268e477fb82f96f98fc7e65f1686 /src/core/basetypes/MCIterator.h
parent129a55d2098fbb114fcb7e785b31ce270e9cfda0 (diff)
Fixed analyzer issues and warnings (#993 and fixed #992)
Diffstat (limited to 'src/core/basetypes/MCIterator.h')
-rw-r--r--src/core/basetypes/MCIterator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/basetypes/MCIterator.h b/src/core/basetypes/MCIterator.h
index e1f258d4..a3e5b1c1 100644
--- a/src/core/basetypes/MCIterator.h
+++ b/src/core/basetypes/MCIterator.h
@@ -14,6 +14,7 @@
#include <MailCore/MCHashMap.h>
#include <MailCore/MCIndexSet.h>
#include <MailCore/MCAutoreleasePool.h>
+#include <MailCore/MCAssert.h>
#include <string.h>
#ifdef __cplusplus
@@ -157,9 +158,11 @@ namespace mailcore {
}
if (keyp != NULL) {
+ MCAssert(iterator->keys != NULL);
* keyp = iterator->keys->objectAtIndex(iterator->index);
}
if (valuep != NULL) {
+ MCAssert(iterator->values != NULL);
* valuep = iterator->values->objectAtIndex(iterator->index);
}
iterator->index ++;