Skip to content

Commit

Permalink
Remove non defined and obsolete CXML_IdToIndex parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 24, 2018
1 parent 373d997 commit 9b8d3cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/xrServerEntities/xml_str_id_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include "Common/object_broker.h"
#endif // XRGAME_EXPORTS

// T_ID - уникальный текстовый идентификатор (аттрибут id в XML файле)
// T_INDEX - уникальный числовой индекс
// T_INIT - класс где определена статическая InitXmlIdToIndex
// функция инициализации file_str и tag_name

Expand Down Expand Up @@ -51,7 +49,7 @@ class CXML_IdToIndex
static const ITEM_DATA* GetById(const shared_str& str_id, bool no_assert = false);
static const ITEM_DATA* GetByIndex(int index, bool no_assert = false);

static const int IdToIndex(const shared_str& str_id, int default_index = T_INDEX(-1), bool no_assert = false)
static const int IdToIndex(const shared_str& str_id, int default_index = -1, bool no_assert = false)
{
const ITEM_DATA* item = GetById(str_id, no_assert);
return item ? item->index : default_index;
Expand Down

0 comments on commit 9b8d3cb

Please sign in to comment.