mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 10:25:21 +02:00
Pass clang-format on various cpp/header files (#5559)
This commit is contained in:
@@ -25,14 +25,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
typedef UNORDERED_MAP<std::string, int> ItemGroupList;
|
||||
|
||||
static inline int itemgroup_get(const ItemGroupList &groups,
|
||||
const std::string &name)
|
||||
static inline int itemgroup_get(const ItemGroupList &groups, const std::string &name)
|
||||
{
|
||||
ItemGroupList::const_iterator i = groups.find(name);
|
||||
if(i == groups.end())
|
||||
if (i == groups.end())
|
||||
return 0;
|
||||
return i->second;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user