fixed some syntax errors

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@52 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-27 22:08:30 +00:00
parent 10f52c80ac
commit 8dbc1d56c8
+4 -2
View File
@@ -34,6 +34,8 @@ class IndexMap : private vector<Value> {
using vector<Value>::size;
using vector<Value>::iterator;
using vector<Value>::const_iterator;
using vector<Value>::reference;
using vector<Value>::const_reference;
using vector<Value>::begin;
using vector<Value>::end;
@@ -60,13 +62,13 @@ class IndexMap : private vector<Value> {
inline bool contains(const Value& value) const {
assert(value);
size_t index = get_key(value)->index;
return index < this.size() && (*this)[index] == value
return index < this->size() && (*this)[index] == value;
}
/// Is a key in the domain of this index map?
inline bool containsKey(const Key& key) const {
assert(key);
return key->index < this.size() && get_key((*this)[key->index]) == key
return key->index < this.size() && get_key((*this)[key->index]) == key;
}
/// Find a value given the key name, return an iterator