Minor fixes including removing <> from make_pair usage and using explicit conversions where required by the explicit constructor flags

Now builds/runs using c++11
This commit is contained in:
Anonymous
2014-01-23 08:55:46 -07:00
parent fabe85739d
commit e6431a9fd4
14 changed files with 34 additions and 49 deletions
@@ -6543,7 +6543,7 @@ jlongArray JNICALL ScriptMethodsObjectInfoNamespace::getAllWornItems(JNIEnv *env
{
SlottedContainmentProperty::SlotArrangement const slots = slottedContainment->getSlotArrangement(slottedContainment->getCurrentArrangement()); // Get the old arrangement
for(unsigned int j = 0; j < slots.size(); ++j)
wornObjects.insert(std::make_pair<SlotId, const ServerObject*>(slots[j], item));
wornObjects.insert(std::make_pair(slots[j], item));
}
}
}
@@ -6586,7 +6586,7 @@ jlongArray JNICALL ScriptMethodsObjectInfoNamespace::getAllWornItems(JNIEnv *env
if(!slotOccupied)
{
for(unsigned int j = 0; j < slots.size(); ++j)
wornObjects.insert(std::make_pair<SlotId, const ServerObject*>(slots[j], item));
wornObjects.insert(std::make_pair(slots[j], item));
}
}
}