summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-10 23:22:44 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 15:22:36 +0200
commit88a9bae160dd0bf28fe41b2a45c198d67a65c914 (patch)
tree7b517aa1f00172b0b103871f3124b15a88ef8f2c /src/inventory.cpp
parentecd5c5f9206437c320da029680cf1d053b644761 (diff)
downloadminetest-88a9bae160dd0bf28fe41b2a45c198d67a65c914.tar.gz
minetest-88a9bae160dd0bf28fe41b2a45c198d67a65c914.tar.bz2
minetest-88a9bae160dd0bf28fe41b2a45c198d67a65c914.zip
constify inventory item serialization
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index c413cc52f..1ee63819d 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<m_lists.size(); i++)
{