summaryrefslogtreecommitdiff
path: root/src/sound_openal.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/sound_openal.cpp
parent2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff)
downloadminetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip
Pass arguments by reference
Diffstat (limited to 'src/sound_openal.cpp')
-rw-r--r--src/sound_openal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp
index 0cfbc2798..d27526b55 100644
--- a/src/sound_openal.cpp
+++ b/src/sound_openal.cpp
@@ -391,7 +391,7 @@ public:
}
/* If buffer does not exist, consult the fetcher */
- SoundBuffer* getFetchBuffer(const std::string name)
+ SoundBuffer* getFetchBuffer(const std::string &name)
{
SoundBuffer *buf = getBuffer(name);
if(buf)