Optimize string (mis)handling (#8128)
[oweals/minetest.git] / src / inventorymanager.cpp
index 51a472a569b49736252ac46b6a59168f68d1d771..24d1fa6ff470c7873455e7126ce153ff5aa96630 100644 (file)
@@ -93,7 +93,7 @@ void InventoryLocation::deSerialize(std::istream &is)
        }
 }
 
-void InventoryLocation::deSerialize(std::string s)
+void InventoryLocation::deSerialize(const std::string &s)
 {
        std::istringstream is(s, std::ios::binary);
        deSerialize(is);