mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Address some clang-tidy warnings
This commit is contained in:
parent
322c4a5b2b
commit
961652c2e9
17 changed files with 35 additions and 36 deletions
|
@ -678,7 +678,7 @@ int ModApiItem::l_get_content_id(lua_State *L)
|
|||
|
||||
// If this is called at mod load time, NodeDefManager isn't aware of
|
||||
// aliases yet, so we need to handle them manually
|
||||
std::string alias_name = idef->getAlias(name);
|
||||
const auto &alias_name = idef->getAlias(name);
|
||||
|
||||
content_t content_id;
|
||||
if (alias_name != name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue