From 7cac34c807b6f38eaca3bc8296566493c8874e03 Mon Sep 17 00:00:00 2001 From: Selat Date: Thu, 27 Feb 2014 23:12:59 +0300 Subject: Pass arguments by reference --- src/sound_openal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound_openal.cpp') 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) -- cgit v1.2.3