fix for findAll()

This commit is contained in:
john30
2014-12-27 14:14:41 +01:00
parent ffd7d3ff18
commit 5cf1aec6df
+1 -1
View File
@@ -429,7 +429,7 @@ deque<Message*> MessageMap::findAll(const string& clazz, const string& name, con
bool checkName = name.length() > 0;
bool checkPb = pb >= 0;
for (map<string, Message*>::iterator it = m_messagesByName.begin(); it != m_messagesByName.end(); it++) {
if (it->first[0] != '-') // avoid duplicates: instances stored multiple times have a key starting with "-"
if (it->first[0] == '-') // avoid duplicates: instances stored multiple times have a key starting with "-"
continue;
Message* message = it->second;
if (checkClass == true && message->getClass() != clazz)