mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Fix compilation
This commit is contained in:
parent
e2c3fc8968
commit
ba1052672f
6 changed files with 12 additions and 12 deletions
|
@ -55,7 +55,7 @@ namespace NLGUI
|
||||||
if (ptr) _Dynamic = CInterfaceElement::convertBool (ptr);
|
if (ptr) _Dynamic = CInterfaceElement::convertBool (ptr);
|
||||||
|
|
||||||
ptr = xmlGetProp (cur, (xmlChar*)"type");
|
ptr = xmlGetProp (cur, (xmlChar*)"type");
|
||||||
string sTmp = ptr;
|
string sTmp = ptr.str();
|
||||||
sTmp = strlwr(sTmp);
|
sTmp = strlwr(sTmp);
|
||||||
if (sTmp == "linear")
|
if (sTmp == "linear")
|
||||||
_Type = Track_Linear;
|
_Type = Track_Linear;
|
||||||
|
|
|
@ -312,7 +312,7 @@ namespace NLGUI
|
||||||
ptr = (char*) xmlGetProp( cur, (xmlChar*)"max_sizeparent" );
|
ptr = (char*) xmlGetProp( cur, (xmlChar*)"max_sizeparent" );
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
string idparent = ptr;
|
string idparent = ptr.str();
|
||||||
idparent = NLMISC::strlwr(idparent);
|
idparent = NLMISC::strlwr(idparent);
|
||||||
if (idparent != "parent")
|
if (idparent != "parent")
|
||||||
{
|
{
|
||||||
|
|
|
@ -664,7 +664,7 @@ namespace NLGUI
|
||||||
//if it begins with a #, it is a reference in the instance attribute
|
//if it begins with a #, it is a reference in the instance attribute
|
||||||
if (strchr(ptr, '#') != NULL)
|
if (strchr(ptr, '#') != NULL)
|
||||||
{
|
{
|
||||||
string LastProp = ptr;
|
string LastProp = ptr.str();
|
||||||
string NewProp ="";
|
string NewProp ="";
|
||||||
string RepProp;
|
string RepProp;
|
||||||
|
|
||||||
|
@ -929,7 +929,7 @@ namespace NLGUI
|
||||||
nlwarning("<CInterfaceParser::parseLink> Can't read the expression for a link node");
|
nlwarning("<CInterfaceParser::parseLink> Can't read the expression for a link node");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::string expr = ptr;
|
std::string expr = ptr.str();
|
||||||
|
|
||||||
|
|
||||||
std::vector<CInterfaceLink::CTargetInfo> targets;
|
std::vector<CInterfaceLink::CTargetInfo> targets;
|
||||||
|
@ -1119,13 +1119,13 @@ namespace NLGUI
|
||||||
nlinfo ("options has no name");
|
nlinfo ("options has no name");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
string optionsName = ptr;
|
string optionsName = ptr.str();
|
||||||
|
|
||||||
// herit if possible
|
// herit if possible
|
||||||
ptr = (char*) xmlGetProp( cur, (xmlChar*)"herit" );
|
ptr = (char*) xmlGetProp( cur, (xmlChar*)"herit" );
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
string optionsParentName = ptr;
|
string optionsParentName = ptr.str();
|
||||||
CInterfaceOptions *io = wm->getOptions( optionsParentName );
|
CInterfaceOptions *io = wm->getOptions( optionsParentName );
|
||||||
if( io != NULL )
|
if( io != NULL )
|
||||||
options->copyBasicMap( *io );
|
options->copyBasicMap( *io );
|
||||||
|
@ -1807,7 +1807,7 @@ namespace NLGUI
|
||||||
nlwarning ("no id in a procedure");
|
nlwarning ("no id in a procedure");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
string procId= ptr;
|
string procId= ptr.str();
|
||||||
|
|
||||||
if (_ProcedureMap.find(procId) != _ProcedureMap.end())
|
if (_ProcedureMap.find(procId) != _ProcedureMap.end())
|
||||||
{
|
{
|
||||||
|
@ -2171,7 +2171,7 @@ namespace NLGUI
|
||||||
//get the property value
|
//get the property value
|
||||||
ptr = (char*)xmlGetProp( cur, props->name);
|
ptr = (char*)xmlGetProp( cur, props->name);
|
||||||
nlassert(ptr);
|
nlassert(ptr);
|
||||||
string propVal= ptr;
|
string propVal= ptr.str();
|
||||||
string newPropVal;
|
string newPropVal;
|
||||||
|
|
||||||
// solve define of this prop
|
// solve define of this prop
|
||||||
|
@ -2328,7 +2328,7 @@ namespace NLGUI
|
||||||
nlinfo ("anim has no id");
|
nlinfo ("anim has no id");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
string animId = ptr;
|
string animId = ptr.str();
|
||||||
pAnim = new CInterfaceAnim;
|
pAnim = new CInterfaceAnim;
|
||||||
|
|
||||||
if (pAnim->parse (cur, parentGroup))
|
if (pAnim->parse (cur, parentGroup))
|
||||||
|
|
|
@ -468,7 +468,7 @@ bool CCtrlSheetInfo::parseCtrlInfo(xmlNodePtr cur, CInterfaceGroup * /* parentGr
|
||||||
prop = (char*) xmlGetProp( cur, (xmlChar*)"item_slot" );
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"item_slot" );
|
||||||
if(prop)
|
if(prop)
|
||||||
{
|
{
|
||||||
string str= prop;
|
string str= prop.str();
|
||||||
_ItemSlot= SLOTTYPE::stringToSlotType(NLMISC::toUpper(str));
|
_ItemSlot= SLOTTYPE::stringToSlotType(NLMISC::toUpper(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -556,7 +556,7 @@ bool CGroupMap::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
ptr = (char*) xmlGetProp( cur, (xmlChar*)"map_mode" );
|
ptr = (char*) xmlGetProp( cur, (xmlChar*)"map_mode" );
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
string sTmp = ptr;
|
string sTmp = ptr.str();
|
||||||
if (sTmp == "normal")
|
if (sTmp == "normal")
|
||||||
_MapMode = MapMode_Normal;
|
_MapMode = MapMode_Normal;
|
||||||
else if (sTmp == "death")
|
else if (sTmp == "death")
|
||||||
|
|
|
@ -353,7 +353,7 @@ bool CCommandParser::parse( xmlNodePtr cur, NLGUI::CInterfaceGroup *parentGroup
|
||||||
if (ptrName)
|
if (ptrName)
|
||||||
{
|
{
|
||||||
// Does the action exist ?
|
// Does the action exist ?
|
||||||
std::string name = ptrName;
|
std::string name = ptrName.str();
|
||||||
if (!ICommand::exists (name) || (CUserCommand::CommandMap.find(name) != CUserCommand::CommandMap.end()))
|
if (!ICommand::exists (name) || (CUserCommand::CommandMap.find(name) != CUserCommand::CommandMap.end()))
|
||||||
{
|
{
|
||||||
// Get the action
|
// Get the action
|
||||||
|
|
Loading…
Reference in a new issue