aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewanim.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:58 -0500
committerJacek Antonelli2008-08-15 23:44:58 -0500
commit089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch)
tree0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/newview/llpreviewanim.cpp
parentSecond Life viewer sources 1.16.0.5 (diff)
downloadmeta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/newview/llpreviewanim.cpp')
-rw-r--r--linden/indra/newview/llpreviewanim.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llpreviewanim.cpp b/linden/indra/newview/llpreviewanim.cpp
index ae98fb0..2eb3b75 100644
--- a/linden/indra/newview/llpreviewanim.cpp
+++ b/linden/indra/newview/llpreviewanim.cpp
@@ -51,7 +51,7 @@ LLPreviewAnim::LLPreviewAnim(const std::string& name, const LLRect& rect, const
51 childSetAction("Anim play btn",playAnim,this); 51 childSetAction("Anim play btn",playAnim,this);
52 childSetAction("Anim audition btn",auditionAnim,this); 52 childSetAction("Anim audition btn",auditionAnim,this);
53 53
54 LLInventoryItem* item = getItem(); 54 const LLInventoryItem* item = getItem();
55 55
56 childSetCommitCallback("desc", LLPreview::onText, this); 56 childSetCommitCallback("desc", LLPreview::onText, this);
57 childSetText("desc", item->getDescription()); 57 childSetText("desc", item->getDescription());
@@ -107,7 +107,7 @@ void LLPreviewAnim::endAnimCallback( void *userdata )
107void LLPreviewAnim::playAnim( void *userdata ) 107void LLPreviewAnim::playAnim( void *userdata )
108{ 108{
109 LLPreviewAnim* self = (LLPreviewAnim*) userdata; 109 LLPreviewAnim* self = (LLPreviewAnim*) userdata;
110 LLInventoryItem *item = self->getItem(); 110 const LLInventoryItem *item = self->getItem();
111 111
112 if(item) 112 if(item)
113 { 113 {
@@ -144,7 +144,7 @@ void LLPreviewAnim::playAnim( void *userdata )
144void LLPreviewAnim::auditionAnim( void *userdata ) 144void LLPreviewAnim::auditionAnim( void *userdata )
145{ 145{
146 LLPreviewAnim* self = (LLPreviewAnim*) userdata; 146 LLPreviewAnim* self = (LLPreviewAnim*) userdata;
147 LLInventoryItem *item = self->getItem(); 147 const LLInventoryItem *item = self->getItem();
148 148
149 if(item) 149 if(item)
150 { 150 {
@@ -180,7 +180,7 @@ void LLPreviewAnim::auditionAnim( void *userdata )
180void LLPreviewAnim::saveAnim( void *userdata ) 180void LLPreviewAnim::saveAnim( void *userdata )
181{ 181{
182 LLPreviewAnim* self = (LLPreviewAnim*) userdata; 182 LLPreviewAnim* self = (LLPreviewAnim*) userdata;
183 LLInventoryItem *item = self->getItem(); 183 const LLInventoryItem *item = self->getItem();
184 184
185 if(item) 185 if(item)
186 { 186 {
@@ -206,7 +206,7 @@ void LLPreviewAnim::saveAnim( void *userdata )
206 206
207void LLPreviewAnim::onClose(bool app_quitting) 207void LLPreviewAnim::onClose(bool app_quitting)
208{ 208{
209 LLInventoryItem *item = getItem(); 209 const LLInventoryItem *item = getItem();
210 210
211 if(item) 211 if(item)
212 { 212 {