mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-22 17:08:43 +00:00
Fixed: Compile fixes for gcc 4.5.0
Example: error: cannot call constructor ‘std::pair<std::basic_string<char>, CInterfaceDDX*>::pair’ directly error: for a function-style cast, remove the redundant ‘::pair’
This commit is contained in:
parent
0fd824a245
commit
fb9f11120a
9 changed files with 49 additions and 49 deletions
|
@ -493,7 +493,7 @@ void CAnimationStateSheet::serial(class NLMISC::IStream &f) throw(NLMISC::EStrea
|
|||
// update statics maps
|
||||
if (f.isReading())
|
||||
{
|
||||
_StringToAnimStateId.insert(pair<string, TAnimStateSheetId>::pair(sStateName, (TAnimStateSheetId)State));
|
||||
_StringToAnimStateId.insert(pair<string, TAnimStateSheetId>(sStateName, (TAnimStateSheetId)State));
|
||||
if (_AnimStateIdToString.size() <= State)
|
||||
_AnimStateIdToString.resize(State+1);
|
||||
_AnimStateIdToString[State] = sStateName;
|
||||
|
|
|
@ -2118,9 +2118,9 @@ public:
|
|||
{
|
||||
vector< pair < string, string > > params;
|
||||
params.clear();
|
||||
params.push_back(pair<string,string>::pair("id", toString(Mainlands[i].Id)));
|
||||
params.push_back(pair<string,string>("id", toString(Mainlands[i].Id)));
|
||||
if (i>0)
|
||||
params.push_back(pair<string,string>::pair("posref", "BL TL"));
|
||||
params.push_back(pair<string,string>("posref", "BL TL"));
|
||||
|
||||
CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_mainland", GROUP_LIST_MAINLAND, params);
|
||||
if (pNewLine != NULL)
|
||||
|
@ -2240,10 +2240,10 @@ public:
|
|||
{
|
||||
vector< pair < string, string > > params;
|
||||
params.clear();
|
||||
params.push_back(pair<string,string>::pair("id", id));
|
||||
params.push_back(pair<string,string>("id", id));
|
||||
if (!First)
|
||||
{
|
||||
params.push_back(pair<string,string>::pair("posref", "BL TL"));
|
||||
params.push_back(pair<string,string>("posref", "BL TL"));
|
||||
}
|
||||
First = false;
|
||||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||
|
@ -2712,9 +2712,9 @@ class CAHScenarioControl : public IActionHandler
|
|||
{
|
||||
vector< pair < string, string > > params;
|
||||
params.clear();
|
||||
params.push_back(pair<string,string>::pair("id", toString(Mainlands[i].Id)));
|
||||
params.push_back(pair<string,string>::pair("w", "1024"));
|
||||
params.push_back(pair<string,string>::pair("tooltip", "uiRingFilterShard"));
|
||||
params.push_back(pair<string,string>("id", toString(Mainlands[i].Id)));
|
||||
params.push_back(pair<string,string>("w", "1024"));
|
||||
params.push_back(pair<string,string>("tooltip", "uiRingFilterShard"));
|
||||
CInterfaceGroup *toggleGr =pIM->createGroupInstance("label_toggle_button", shardList->getId(), params);
|
||||
shardList->addChild(toggleGr);
|
||||
// set unicode name
|
||||
|
|
|
@ -207,7 +207,7 @@ void CEntityAnimationManager::load(NLMISC::IProgressCallback &/* progress */, bo
|
|||
string sTmp = strlwr(pASLS->AnimSetList[i].Name);
|
||||
sTmp = sTmp.substr(0,sTmp.rfind('.'));
|
||||
pair<map<string,CAnimationSet>::iterator, bool> it;
|
||||
it = _AnimSet.insert(pair<string,CAnimationSet>::pair(sTmp,as));
|
||||
it = _AnimSet.insert(pair<string,CAnimationSet>(sTmp,as));
|
||||
it.first->second.init (&pASLS->AnimSetList[i], _AnimationSet);
|
||||
}
|
||||
|
||||
|
|
|
@ -961,7 +961,7 @@ void CDDXManager::release()
|
|||
// ***************************************************************************
|
||||
void CDDXManager::add(CInterfaceDDX *pDDX)
|
||||
{
|
||||
_DDXes.insert(pair<string,CInterfaceDDX*>::pair(pDDX->getId(),pDDX));
|
||||
_DDXes.insert(pair<string,CInterfaceDDX*>(pDDX->getId(),pDDX));
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
|
|
@ -248,7 +248,7 @@ public:
|
|||
{
|
||||
string sTmp = child->getId();
|
||||
sTmp = sTmp.substr(_Id.size()+1,sTmp.size());
|
||||
_Accel.insert(pair<string,CInterfaceGroup*>::pair(sTmp, child));
|
||||
_Accel.insert(pair<string,CInterfaceGroup*>(sTmp, child));
|
||||
CInterfaceGroup::addGroup(child,eltOrder);
|
||||
}
|
||||
|
||||
|
|
|
@ -2795,17 +2795,17 @@ class CHandlerInvTempAll : public IActionHandler
|
|||
|
||||
// Try to put all items in the DB order in all the bags of the player : (bag, pa0-3, steed)
|
||||
vector <pair <double, double> > BagsBulk;
|
||||
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(0), pInv->getMaxBagBulk(0)));
|
||||
BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(0), pInv->getMaxBagBulk(0)));
|
||||
|
||||
nlctassert(MAX_INVENTORY_ANIMAL==4);
|
||||
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal1))
|
||||
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(2), pInv->getMaxBagBulk(2)));
|
||||
BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(2), pInv->getMaxBagBulk(2)));
|
||||
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal2))
|
||||
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(3), pInv->getMaxBagBulk(3)));
|
||||
BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(3), pInv->getMaxBagBulk(3)));
|
||||
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal3))
|
||||
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
|
||||
BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
|
||||
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal4))
|
||||
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
|
||||
BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
|
||||
|
||||
bool bPlaceFound = true;
|
||||
|
||||
|
|
|
@ -417,13 +417,13 @@ void CModalContainerEditCmd::create(const std::string &name, bool bDefKey, bool
|
|||
pIM->getDbProp(DbComboDisp2P);
|
||||
|
||||
vector< pair<string,string> > vArgs;
|
||||
vArgs.push_back(pair<string,string>::pair("id",name));
|
||||
vArgs.push_back(pair<string,string>::pair("db_sel_cat",DbComboSelCat));
|
||||
vArgs.push_back(pair<string,string>::pair("db_sel_act",DbComboSelAct));
|
||||
vArgs.push_back(pair<string,string>::pair("db_sel_1p",DbComboSel1P));
|
||||
vArgs.push_back(pair<string,string>::pair("db_sel_2p",DbComboSel2P));
|
||||
vArgs.push_back(pair<string,string>::pair("db_disp_1p",DbComboDisp1P));
|
||||
vArgs.push_back(pair<string,string>::pair("db_disp_2p",DbComboDisp2P));
|
||||
vArgs.push_back(pair<string,string>("id",name));
|
||||
vArgs.push_back(pair<string,string>("db_sel_cat",DbComboSelCat));
|
||||
vArgs.push_back(pair<string,string>("db_sel_act",DbComboSelAct));
|
||||
vArgs.push_back(pair<string,string>("db_sel_1p",DbComboSel1P));
|
||||
vArgs.push_back(pair<string,string>("db_sel_2p",DbComboSel2P));
|
||||
vArgs.push_back(pair<string,string>("db_disp_1p",DbComboDisp1P));
|
||||
vArgs.push_back(pair<string,string>("db_disp_2p",DbComboDisp2P));
|
||||
|
||||
Win = dynamic_cast<CGroupContainer*>(pIM->createGroupInstance(TEMPLATE_EDITCMD, "ui:interface", vArgs));
|
||||
if (Win == NULL)
|
||||
|
|
|
@ -73,13 +73,13 @@ bool CPeopleList::create(const CPeopleListDesc &desc, const CChatWindowDesc *cha
|
|||
|
||||
// create the base container
|
||||
vector< pair<string, string> > baseContainerParams;
|
||||
baseContainerParams.push_back(pair<string, string>::pair("id", desc.Id));
|
||||
baseContainerParams.push_back(pair<string, string>("id", desc.Id));
|
||||
std::string baseId;
|
||||
if (fatherContainer == NULL)
|
||||
{
|
||||
baseContainerParams.push_back(pair<string, string>::pair("movable","true"));
|
||||
baseContainerParams.push_back(pair<string, string>::pair("active","false"));
|
||||
baseContainerParams.push_back(pair<string, string>::pair("opened","true"));
|
||||
baseContainerParams.push_back(pair<string, string>("movable","true"));
|
||||
baseContainerParams.push_back(pair<string, string>("active","false"));
|
||||
baseContainerParams.push_back(pair<string, string>("opened","true"));
|
||||
baseId = "ui:interface";
|
||||
}
|
||||
else
|
||||
|
|
|
@ -177,9 +177,9 @@ void createOptionalCatUI()
|
|||
{
|
||||
vector< pair < string, string > > params;
|
||||
params.clear();
|
||||
params.push_back(pair<string,string>::pair("id", "c"+toString(i)));
|
||||
params.push_back(pair<string,string>("id", "c"+toString(i)));
|
||||
if (i>0)
|
||||
params.push_back(pair<string,string>::pair("posref", "BL TL"));
|
||||
params.push_back(pair<string,string>("posref", "BL TL"));
|
||||
|
||||
CInterfaceGroup *pNewLine = pIM->createGroupInstance("t_cat", GROUP_LIST_CAT, params);
|
||||
if (pNewLine != NULL)
|
||||
|
@ -1103,9 +1103,9 @@ void initShardDisplay()
|
|||
{
|
||||
vector< pair < string, string > > params;
|
||||
params.clear();
|
||||
params.push_back(pair<string,string>::pair("id", "s"+toString(i)));
|
||||
params.push_back(pair<string,string>("id", "s"+toString(i)));
|
||||
if (i>0)
|
||||
params.push_back(pair<string,string>::pair("posref", "BL TL"));
|
||||
params.push_back(pair<string,string>("posref", "BL TL"));
|
||||
|
||||
CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params);
|
||||
if (pNewLine != NULL)
|
||||
|
@ -1229,9 +1229,9 @@ void onlogin(bool vanishScreen = true)
|
|||
// {
|
||||
// vector< pair < string, string > > params;
|
||||
// params.clear();
|
||||
// params.push_back(pair<string,string>::pair("id", "s"+toString(i)));
|
||||
// params.push_back(pair<string,string>("id", "s"+toString(i)));
|
||||
// if (i>0)
|
||||
// params.push_back(pair<string,string>::pair("posref", "BL TL"));
|
||||
// params.push_back(pair<string,string>("posref", "BL TL"));
|
||||
//
|
||||
// CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params);
|
||||
// if (pNewLine != NULL)
|
||||
|
@ -2033,23 +2033,23 @@ class CAHInitResLod : public IActionHandler
|
|||
// first indicates the preset-able cfg-variable
|
||||
// second indicates if its a double variable (else it's an int)
|
||||
CfgPresetList.clear();
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("LandscapeTileNear", true));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("LandscapeThreshold", true));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("Vision", true));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("MicroVeget", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("MicroVegetDensity", true));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("FxNbMaxPoly", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("Cloud", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("CloudQuality", true));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("CloudUpdate", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("Shadows", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("SkinNbMaxPoly", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("NbMaxSkeletonNotCLod", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("CharacterFarClip", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("LandscapeTileNear", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("LandscapeThreshold", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("Vision", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("MicroVeget", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("MicroVegetDensity", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("FxNbMaxPoly", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("Cloud", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("CloudQuality", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("CloudUpdate", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("Shadows", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("SkinNbMaxPoly", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("NbMaxSkeletonNotCLod", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("CharacterFarClip", true));
|
||||
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("Bloom", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("SquareBloom", false));
|
||||
CfgPresetList.push_back(pair<string,bool>::pair("DensityBloom", true));
|
||||
CfgPresetList.push_back(pair<string,bool>("Bloom", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("SquareBloom", false));
|
||||
CfgPresetList.push_back(pair<string,bool>("DensityBloom", true));
|
||||
|
||||
// Check if all the preset-able cfg-variable are in a preset mode
|
||||
sint nPreset = -1;
|
||||
|
|
Loading…
Reference in a new issue