summaryrefslogtreecommitdiff
path: root/indra/newview/llavatarlistitem.h
diff options
context:
space:
mode:
authorAndrew Polunin <apolunin@productengine.com>2009-12-19 18:35:38 +0200
committerAndrew Polunin <apolunin@productengine.com>2009-12-19 18:35:38 +0200
commitdc8cd05082e4d82a578d4a20278725cdf5e0450f (patch)
tree10c95eff04dbf67b7d2c6fc0dec0fd0be7b830a5 /indra/newview/llavatarlistitem.h
parent75a4c5a6dd0cdaf9755bf40821d23c45296181d4 (diff)
implemented minor task EXT-3455 Code Improvements: Improve LLAvatarListItem not to calculate constant values in each constructing
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llavatarlistitem.h')
-rw-r--r--indra/newview/llavatarlistitem.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llavatarlistitem.h b/indra/newview/llavatarlistitem.h
index aa1b7593f5..1272bdf7a9 100644
--- a/indra/newview/llavatarlistitem.h
+++ b/indra/newview/llavatarlistitem.h
@@ -135,10 +135,12 @@ private:
//Speaker indicator and avatar name coords are translated accordingly
bool mShowInfoBtn;
bool mShowProfileBtn;
- S32 mIconWidth; // icon width + padding
- S32 mInfoBtnWidth; //info btn width + padding
- S32 mProfileBtnWidth; //profile btn width + padding
- S32 mSpeakingIndicatorWidth; //speaking indicator width + padding
+
+ static bool mStaticInitialized; // this variable is introduced to improve code readability
+ static S32 mIconWidth; // icon width + padding
+ static S32 mInfoBtnWidth; //info btn width + padding
+ static S32 mProfileBtnWidth; //profile btn width + padding
+ static S32 mSpeakingIndicatorWidth; //speaking indicator width + padding
};
#endif //LL_LLAVATARLISTITEM_H