From 9b8d3cbbaffd14424ed8b99159d0cb2d0d8776a3 Mon Sep 17 00:00:00 2001 From: Zegeri Date: Mon, 24 Sep 2018 18:35:29 +0200 Subject: [PATCH] Remove non defined and obsolete CXML_IdToIndex parameters --- src/xrServerEntities/xml_str_id_loader.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xrServerEntities/xml_str_id_loader.h b/src/xrServerEntities/xml_str_id_loader.h index f2bd3fd1179..0301238200f 100644 --- a/src/xrServerEntities/xml_str_id_loader.h +++ b/src/xrServerEntities/xml_str_id_loader.h @@ -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 @@ -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;