mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Use std::string instead of ucstring
This commit is contained in:
parent
6f1197d633
commit
54f128ad17
3 changed files with 4 additions and 4 deletions
|
@ -1953,12 +1953,12 @@ CEntityCL *CEntityManager::getEntityByCompressedIndex(TDataSetIndex compressedIn
|
|||
// getEntityBySheetName :
|
||||
// Return an entity based on its sheet name
|
||||
//-----------------------------------------------
|
||||
CEntityCL *CEntityManager::getEntityBySheetName (const ucstring &sheet) const
|
||||
CEntityCL *CEntityManager::getEntityBySheetName (const std::string &sheet) const
|
||||
{
|
||||
if (!sheet.empty())
|
||||
{
|
||||
uint i;
|
||||
const CSheetId& sheetRef = NLMISC::CSheetId(sheet.toUtf8());
|
||||
const CSheetId& sheetRef = NLMISC::CSheetId(sheet);
|
||||
const uint count = (uint)_Entities.size();
|
||||
for (i=0; i<count; i++)
|
||||
{
|
||||
|
|
|
@ -277,7 +277,7 @@ public:
|
|||
* \param complete : if true, the name must match the full name of the entity.
|
||||
*/
|
||||
CEntityCL *getEntityByName (const ucstring &name, bool caseSensitive, bool complete) const;
|
||||
CEntityCL *getEntityBySheetName (const ucstring &sheet) const;
|
||||
CEntityCL *getEntityBySheetName (const std::string &sheet) const;
|
||||
/// Get an entity by dataset index. Returns NULL if the entity is not found.
|
||||
CEntityCL *getEntityByCompressedIndex(TDataSetIndex compressedIndex) const;
|
||||
|
||||
|
|
|
@ -2438,7 +2438,7 @@ class CAHTarget : public IActionHandler
|
|||
if (entity == NULL)
|
||||
{
|
||||
//Get the entity with a sheetName
|
||||
entity = EntitiesMngr.getEntityBySheetName(entityName);
|
||||
entity = EntitiesMngr.getEntityBySheetName(entityName.toUtf8());
|
||||
}
|
||||
|
||||
if (entity)
|
||||
|
|
Loading…
Reference in a new issue