Issue #256: fixed a capitalisation mistake

This commit is contained in:
Marc Zinnschlag 2012-05-18 15:26:08 +02:00
parent 5236bcb557
commit 40c58c1bb7
2 changed files with 7 additions and 8 deletions

View file

@ -94,7 +94,7 @@ namespace MWMechanics
return *this; return *this;
} }
for (Collection::const_iterator iter (effects.Begin()); iter!=effects.End(); ++iter) for (Collection::const_iterator iter (effects.begin()); iter!=effects.end(); ++iter)
{ {
Collection::iterator result = mCollection.find (iter->first); Collection::iterator result = mCollection.find (iter->first);
@ -128,11 +128,11 @@ namespace MWMechanics
MagicEffects result; MagicEffects result;
// adding/changing // adding/changing
for (Collection::const_iterator iter (now.Begin()); iter!=now.End(); ++iter) for (Collection::const_iterator iter (now.begin()); iter!=now.end(); ++iter)
{ {
Collection::const_iterator other = prev.mCollection.find (iter->first); Collection::const_iterator other = prev.mCollection.find (iter->first);
if (other==prev.End()) if (other==prev.end())
{ {
// adding // adding
result.add (iter->first, iter->second); result.add (iter->first, iter->second);
@ -145,17 +145,16 @@ namespace MWMechanics
} }
// removing // removing
for (Collection::const_iterator iter (prev.Begin()); iter!=prev.End(); ++iter) for (Collection::const_iterator iter (prev.begin()); iter!=prev.end(); ++iter)
{ {
Collection::const_iterator other = now.mCollection.find (iter->first); Collection::const_iterator other = now.mCollection.find (iter->first);
if (other==prev.End()) if (other==prev.end())
{ {
result.add (iter->first, EffectParam() - iter->second); result.add (iter->first, EffectParam() - iter->second);
} }
} }
return result; return result;
} }
} }

View file

@ -61,9 +61,9 @@ namespace MWMechanics
public: public:
Collection::const_iterator Begin() const { return mCollection.begin(); } Collection::const_iterator begin() const { return mCollection.begin(); }
Collection::const_iterator End() const { return mCollection.end(); } Collection::const_iterator end() const { return mCollection.end(); }
void add (const EffectKey& key, const EffectParam& param); void add (const EffectKey& key, const EffectParam& param);