diff options
author | Selat <LongExampleTestName@gmail.com> | 2014-02-27 23:12:59 +0300 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-03-12 17:34:48 -0400 |
commit | 7cac34c807b6f38eaca3bc8296566493c8874e03 (patch) | |
tree | 0403e9aae7fc96343c3ecba138ba9d06421c506e /src/content_sao.h | |
parent | 2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff) | |
download | minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2 minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip |
Pass arguments by reference
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 1be620f29..63e8ef460 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "object_properties.h" ServerActiveObject* createItemSAO(ServerEnvironment *env, v3f pos, - const std::string itemstring); + const std::string &itemstring); /* LuaEntitySAO needs some internals exposed. @@ -37,7 +37,7 @@ class LuaEntitySAO : public ServerActiveObject { public: LuaEntitySAO(ServerEnvironment *env, v3f pos, - const std::string &name, const std::string &state); + const std::string &name, const std::string &state); ~LuaEntitySAO(); u8 getType() const { return ACTIVEOBJECT_TYPE_LUAENTITY; } |