From ad1605950eb3ddc859f25ea51a265b6f366a34e6 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 19 Jun 2014 17:24:50 +0200 Subject: [PATCH] Pass source object UUID as const ref --- indra/llaudio/llaudioengine.cpp | 2 +- indra/llaudio/llaudioengine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llaudio/llaudioengine.cpp b/indra/llaudio/llaudioengine.cpp index 3c4cdd0ac4..1a5c0f1521 100755 --- a/indra/llaudio/llaudioengine.cpp +++ b/indra/llaudio/llaudioengine.cpp @@ -822,7 +822,7 @@ F64 LLAudioEngine::mapWindVecToPan(LLVector3 wind_vec) void LLAudioEngine::triggerSound(const LLUUID &audio_uuid, const LLUUID& owner_id, const F32 gain, - const S32 type, const LLVector3d &pos_global, const LLUUID source_object) + const S32 type, const LLVector3d &pos_global, const LLUUID& source_object) { // Create a new source (since this can't be associated with an existing source. //LL_INFOS() << "Localized: " << audio_uuid << LL_ENDL; diff --git a/indra/llaudio/llaudioengine.h b/indra/llaudio/llaudioengine.h index 3f4245287f..87be9b7fcc 100755 --- a/indra/llaudio/llaudioengine.h +++ b/indra/llaudio/llaudioengine.h @@ -145,7 +145,7 @@ public: void triggerSound(const LLUUID &sound_id, const LLUUID& owner_id, const F32 gain, const S32 type = LLAudioEngine::AUDIO_TYPE_NONE, const LLVector3d &pos_global = LLVector3d::zero, - const LLUUID source_object = LLUUID::null); + const LLUUID& source_object = LLUUID::null); // NaCl End void triggerSound(SoundData& soundData);