Fixed: Some warnings
This commit is contained in:
parent
d2749d1857
commit
9889049239
7 changed files with 24 additions and 24 deletions
|
@ -549,27 +549,27 @@ namespace NLGUI
|
||||||
if( editorMode )
|
if( editorMode )
|
||||||
{
|
{
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onover" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onover" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onover", std::string( (const char*)prop ) );
|
mapAHString( "onover", std::string( (const char*)prop ) );
|
||||||
|
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onclick_l" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onclick_l" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onclick_l", std::string( (const char*)prop ) );
|
mapAHString( "onclick_l", std::string( (const char*)prop ) );
|
||||||
|
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "ondblclick_l" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "ondblclick_l" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "ondblclick_l", std::string( (const char*)prop ) );
|
mapAHString( "ondblclick_l", std::string( (const char*)prop ) );
|
||||||
|
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onclick_r" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onclick_r" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onclick_r", std::string( (const char*)prop ) );
|
mapAHString( "onclick_r", std::string( (const char*)prop ) );
|
||||||
|
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onlongclick_l" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onlongclick_l" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onlongclick_l", std::string( (const char*)prop ) );
|
mapAHString( "onlongclick_l", std::string( (const char*)prop ) );
|
||||||
|
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onclock_tick" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onclock_tick" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onclock_tick", std::string( (const char*)prop ) );
|
mapAHString( "onclock_tick", std::string( (const char*)prop ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -540,7 +540,7 @@ namespace NLGUI
|
||||||
if( editorMode )
|
if( editorMode )
|
||||||
{
|
{
|
||||||
prop = (char*) xmlGetProp( cur, BAD_CAST "onenter" );
|
prop = (char*) xmlGetProp( cur, BAD_CAST "onenter" );
|
||||||
if( prop != NULL )
|
if (prop)
|
||||||
mapAHString( "onenter", std::string( (const char*)prop ) );
|
mapAHString( "onenter", std::string( (const char*)prop ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,8 @@ void CHairSet::init (NLMISC::IProgressCallback &progress)
|
||||||
const CItemSheet *item = SheetMngr.getItem(SLOTTYPE::HEAD_SLOT, k);
|
const CItemSheet *item = SheetMngr.getItem(SLOTTYPE::HEAD_SLOT, k);
|
||||||
if( (item) && (!item->getShape().empty()) )
|
if( (item) && (!item->getShape().empty()) )
|
||||||
{
|
{
|
||||||
std::string itemName = item->getShape();
|
std::string itemName = NLMISC::toLower(item->getShape());
|
||||||
itemName = NLMISC::strlwr(itemName);
|
|
||||||
if (item->getShape().find("cheveux", 0) != std::string::npos)
|
if (item->getShape().find("cheveux", 0) != std::string::npos)
|
||||||
{
|
{
|
||||||
// get race
|
// get race
|
||||||
|
|
|
@ -257,7 +257,7 @@ void CAnimalPositionState::serial(NLMISC::IStream &f)
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
CEntityCL *CNamedEntityPositionState::getEntity()
|
CEntityCL *CNamedEntityPositionState::getEntity()
|
||||||
{
|
{
|
||||||
if (!dbOk()) return false;
|
if (!dbOk()) return NULL;
|
||||||
return EntitiesMngr.getEntityByName(_Name->getValue32());
|
return EntitiesMngr.getEntityByName(_Name->getValue32());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue