From: Giuseppe Bilotta Date: Wed, 10 Aug 2011 21:22:44 +0000 (+0200) Subject: constify inventory item serialization X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=88a9bae160dd0bf28fe41b2a45c198d67a65c914;p=zefram%2Fminetest%2Fminetest_engine.git constify inventory item serialization --- diff --git a/src/inventory.cpp b/src/inventory.cpp index c413cc52..1ee63819 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -320,7 +320,7 @@ void InventoryList::clearItems() //setDirty(true); } -void InventoryList::serialize(std::ostream &os) +void InventoryList::serialize(std::ostream &os) const { //os.imbue(std::locale("C")); @@ -661,7 +661,7 @@ Inventory & Inventory::operator = (const Inventory &other) return *this; } -void Inventory::serialize(std::ostream &os) +void Inventory::serialize(std::ostream &os) const { for(u32 i=0; i