diff options
Diffstat (limited to 'linden/indra/newview/llpreviewsound.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewsound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llpreviewsound.cpp b/linden/indra/newview/llpreviewsound.cpp index 63a8226..4e12cd0 100644 --- a/linden/indra/newview/llpreviewsound.cpp +++ b/linden/indra/newview/llpreviewsound.cpp | |||
@@ -59,7 +59,7 @@ LLPreviewSound::LLPreviewSound(const std::string& name, const LLRect& rect, cons | |||
59 | button = LLUICtrlFactory::getButtonByName(this, "Sound audition btn"); | 59 | button = LLUICtrlFactory::getButtonByName(this, "Sound audition btn"); |
60 | button->setSoundFlags(LLView::SILENT); | 60 | button->setSoundFlags(LLView::SILENT); |
61 | 61 | ||
62 | LLInventoryItem* item = getItem(); | 62 | const LLInventoryItem* item = getItem(); |
63 | 63 | ||
64 | childSetCommitCallback("desc", LLPreview::onText, this); | 64 | childSetCommitCallback("desc", LLPreview::onText, this); |
65 | childSetText("desc", item->getDescription()); | 65 | childSetText("desc", item->getDescription()); |
@@ -85,7 +85,7 @@ LLPreviewSound::LLPreviewSound(const std::string& name, const LLRect& rect, cons | |||
85 | void LLPreviewSound::playSound( void *userdata ) | 85 | void LLPreviewSound::playSound( void *userdata ) |
86 | { | 86 | { |
87 | LLPreviewSound* self = (LLPreviewSound*) userdata; | 87 | LLPreviewSound* self = (LLPreviewSound*) userdata; |
88 | LLInventoryItem *item = self->getItem(); | 88 | const LLInventoryItem *item = self->getItem(); |
89 | 89 | ||
90 | if(item && gAudiop) | 90 | if(item && gAudiop) |
91 | { | 91 | { |
@@ -97,7 +97,7 @@ void LLPreviewSound::playSound( void *userdata ) | |||
97 | void LLPreviewSound::auditionSound( void *userdata ) | 97 | void LLPreviewSound::auditionSound( void *userdata ) |
98 | { | 98 | { |
99 | LLPreviewSound* self = (LLPreviewSound*) userdata; | 99 | LLPreviewSound* self = (LLPreviewSound*) userdata; |
100 | LLInventoryItem *item = self->getItem(); | 100 | const LLInventoryItem *item = self->getItem(); |
101 | 101 | ||
102 | if(item && gAudiop) | 102 | if(item && gAudiop) |
103 | { | 103 | { |