mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
Pass clang-format on various cpp/header files (#5559)
This commit is contained in:
parent
0c34fe20a1
commit
91a9382c25
30 changed files with 138 additions and 183 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue