summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorSelat <LongExampleTestName@gmail.com>2014-02-27 23:12:59 +0300
committerShadowNinja <shadowninja@minetest.net>2014-03-12 17:34:48 -0400
commit7cac34c807b6f38eaca3bc8296566493c8874e03 (patch)
tree0403e9aae7fc96343c3ecba138ba9d06421c506e /src/content_sao.cpp
parent2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff)
downloadminetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip
Pass arguments by reference
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 52b741365..095c6b5bf 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -191,7 +191,7 @@ public:
}
ItemSAO(ServerEnvironment *env, v3f pos,
- const std::string itemstring):
+ const std::string &itemstring):
ServerActiveObject(env, pos),
m_itemstring(itemstring),
m_itemstring_changed(false),
@@ -350,7 +350,7 @@ private:
ItemSAO proto_ItemSAO(NULL, v3f(0,0,0), "");
ServerActiveObject* createItemSAO(ServerEnvironment *env, v3f pos,
- const std::string itemstring)
+ const std::string &itemstring)
{
return new ItemSAO(env, pos, itemstring);
}