aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llstyle.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/llstyle.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llui/llstyle.cpp')
-rw-r--r--linden/indra/llui/llstyle.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/llui/llstyle.cpp b/linden/indra/llui/llstyle.cpp
index 58cf200..6130416 100644
--- a/linden/indra/llui/llstyle.cpp
+++ b/linden/indra/llui/llstyle.cpp
@@ -39,7 +39,7 @@
39 39
40LLStyle::LLStyle() 40LLStyle::LLStyle()
41{ 41{
42 init(TRUE, LLColor4(0,0,0,1),""); 42 init(TRUE, LLColor4(0,0,0,1),LLStringUtil::null);
43} 43}
44 44
45LLStyle::LLStyle(const LLStyle &style) 45LLStyle::LLStyle(const LLStyle &style)
@@ -62,21 +62,21 @@ LLStyle::LLStyle(const LLStyle &style)
62 } 62 }
63 else 63 else
64 { 64 {
65 init(TRUE, LLColor4(0,0,0,1),""); 65 init(TRUE, LLColor4(0,0,0,1),LLStringUtil::null);
66 } 66 }
67} 67}
68 68
69LLStyle::LLStyle(BOOL is_visible, const LLColor4 &color, const LLString& font_name) 69LLStyle::LLStyle(BOOL is_visible, const LLColor4 &color, const std::string& font_name)
70{ 70{
71 init(is_visible, color, font_name); 71 init(is_visible, color, font_name);
72} 72}
73 73
74void LLStyle::init(BOOL is_visible, const LLColor4 &color, const LLString& font_name) 74void LLStyle::init(BOOL is_visible, const LLColor4 &color, const std::string& font_name)
75{ 75{
76 mVisible = is_visible; 76 mVisible = is_visible;
77 mColor = color; 77 mColor = color;
78 setFontName(font_name); 78 setFontName(font_name);
79 setLinkHREF(""); 79 setLinkHREF(LLStringUtil::null);
80 mItalic = FALSE; 80 mItalic = FALSE;
81 mBold = FALSE; 81 mBold = FALSE;
82 mUnderline = FALSE; 82 mUnderline = FALSE;
@@ -110,12 +110,12 @@ LLStyle &LLStyle::operator=(const LLStyle &rhs)
110} 110}
111 111
112 112
113void LLStyle::setFontName(const LLString& fontname) 113void LLStyle::setFontName(const std::string& fontname)
114{ 114{
115 mFontName = fontname; 115 mFontName = fontname;
116 116
117 LLString fontname_lc = fontname; 117 std::string fontname_lc = fontname;
118 LLString::toLower(fontname_lc); 118 LLStringUtil::toLower(fontname_lc);
119 119
120 mFontID = LLFONT_OCRA; // default 120 mFontID = LLFONT_OCRA; // default
121 121
@@ -138,7 +138,7 @@ void LLStyle::setFontName(const LLString& fontname)
138} 138}
139 139
140 140
141void LLStyle::setLinkHREF(const LLString& href) 141void LLStyle::setLinkHREF(const std::string& href)
142{ 142{
143 mLink = href; 143 mLink = href;
144} 144}