aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpreviewsound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llpreviewsound.cpp b/linden/indra/newview/llpreviewsound.cpp
index 212ceb9..9ba6fd5 100644
--- a/linden/indra/newview/llpreviewsound.cpp
+++ b/linden/indra/newview/llpreviewsound.cpp
@@ -41,7 +41,7 @@
41#include "llresmgr.h" 41#include "llresmgr.h"
42#include "llviewercontrol.h" 42#include "llviewercontrol.h"
43#include "llviewermessage.h" // send_guid_sound_trigger 43#include "llviewermessage.h" // send_guid_sound_trigger
44#include "llvieweruictrlfactory.h" 44#include "lluictrlfactory.h"
45 45
46extern LLAudioEngine* gAudiop; 46extern LLAudioEngine* gAudiop;
47extern LLAgent gAgent; 47extern LLAgent gAgent;
@@ -52,15 +52,15 @@ LLPreviewSound::LLPreviewSound(const std::string& name, const LLRect& rect, cons
52 LLPreview( name, rect, title, item_uuid, object_uuid) 52 LLPreview( name, rect, title, item_uuid, object_uuid)
53{ 53{
54 54
55 gUICtrlFactory->buildFloater(this,"floater_preview_sound.xml"); 55 LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_sound.xml");
56 56
57 childSetAction("Sound play btn",&LLPreviewSound::playSound,this); 57 childSetAction("Sound play btn",&LLPreviewSound::playSound,this);
58 childSetAction("Sound audition btn",&LLPreviewSound::auditionSound,this); 58 childSetAction("Sound audition btn",&LLPreviewSound::auditionSound,this);
59 59
60 LLButton* button = LLUICtrlFactory::getButtonByName(this, "Sound play btn"); 60 LLButton* button = getChild<LLButton>("Sound play btn");
61 button->setSoundFlags(LLView::SILENT); 61 button->setSoundFlags(LLView::SILENT);
62 62
63 button = LLUICtrlFactory::getButtonByName(this, "Sound audition btn"); 63 button = getChild<LLButton>("Sound audition btn");
64 button->setSoundFlags(LLView::SILENT); 64 button->setSoundFlags(LLView::SILENT);
65 65
66 const LLInventoryItem* item = getItem(); 66 const LLInventoryItem* item = getItem();