some ezc functions from templates/item.cpp moved to Item and ItemContent

methods HasAccess() HasReadAccess() and similar moved from System to Item and ItemContent
This commit is contained in:
tomasz.sowa committed 2021-06-18 19:18:13 +02:00
1 parent ebd791a256
commit ec94dff7d7
32 files changed
+1255 -544

No files matched your search

+13 -2
View File
@@ -456,9 +456,20 @@ Item * Dirs::GetDir(long id)
DirContainer::Iterator i = dir_tab.FindId(id);
if( i == dir_tab.End() )
return 0;
return nullptr;
return &(*i);
return &(*i);
}
const Item * Dirs::GetDir(long id) const
{
DirContainer::ConstIterator i = dir_tab.FindId(id);
if( i == dir_tab.End() )
return nullptr;
return &(*i);
}