fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -314,7 +314,7 @@ void Hud::openInventory() {
|
||||
}
|
||||
|
||||
void Hud::openInventory(
|
||||
glm::ivec3 block,
|
||||
const glm::ivec3& block,
|
||||
UiDocument* doc,
|
||||
std::shared_ptr<Inventory> blockinv,
|
||||
bool playerInventory
|
||||
|
||||
Reference in New Issue
Block a user