diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/lliconctrl.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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/lliconctrl.cpp')
-rw-r--r-- | linden/indra/llui/lliconctrl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/llui/lliconctrl.cpp b/linden/indra/llui/lliconctrl.cpp index f35de85..6d1a678 100644 --- a/linden/indra/llui/lliconctrl.cpp +++ b/linden/indra/llui/lliconctrl.cpp | |||
@@ -44,7 +44,7 @@ const F32 RESOLUTION_BUMP = 1.f; | |||
44 | 44 | ||
45 | static LLRegisterWidget<LLIconCtrl> r("icon"); | 45 | static LLRegisterWidget<LLIconCtrl> r("icon"); |
46 | 46 | ||
47 | LLIconCtrl::LLIconCtrl(const LLString& name, const LLRect &rect, const LLUUID &image_id) | 47 | LLIconCtrl::LLIconCtrl(const std::string& name, const LLRect &rect, const LLUUID &image_id) |
48 | : LLUICtrl(name, | 48 | : LLUICtrl(name, |
49 | rect, | 49 | rect, |
50 | FALSE, // mouse opaque | 50 | FALSE, // mouse opaque |
@@ -56,7 +56,7 @@ LLIconCtrl::LLIconCtrl(const LLString& name, const LLRect &rect, const LLUUID &i | |||
56 | setTabStop(FALSE); | 56 | setTabStop(FALSE); |
57 | } | 57 | } |
58 | 58 | ||
59 | LLIconCtrl::LLIconCtrl(const LLString& name, const LLRect &rect, const LLString &image_name) | 59 | LLIconCtrl::LLIconCtrl(const std::string& name, const LLRect &rect, const std::string &image_name) |
60 | : LLUICtrl(name, | 60 | : LLUICtrl(name, |
61 | rect, | 61 | rect, |
62 | FALSE, // mouse opaque | 62 | FALSE, // mouse opaque |
@@ -76,7 +76,7 @@ LLIconCtrl::~LLIconCtrl() | |||
76 | } | 76 | } |
77 | 77 | ||
78 | 78 | ||
79 | void LLIconCtrl::setImage(const LLString& image_name) | 79 | void LLIconCtrl::setImage(const std::string& image_name) |
80 | { | 80 | { |
81 | //RN: support UUIDs masquerading as strings | 81 | //RN: support UUIDs masquerading as strings |
82 | if (LLUUID::validate(image_name)) | 82 | if (LLUUID::validate(image_name)) |
@@ -148,13 +148,13 @@ LLXMLNodePtr LLIconCtrl::getXML(bool save_children) const | |||
148 | 148 | ||
149 | LLView* LLIconCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 149 | LLView* LLIconCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
150 | { | 150 | { |
151 | LLString name("icon"); | 151 | std::string name("icon"); |
152 | node->getAttributeString("name", name); | 152 | node->getAttributeString("name", name); |
153 | 153 | ||
154 | LLRect rect; | 154 | LLRect rect; |
155 | createRect(node, rect, parent, LLRect()); | 155 | createRect(node, rect, parent, LLRect()); |
156 | 156 | ||
157 | LLString image_name; | 157 | std::string image_name; |
158 | if (node->hasAttribute("image_name")) | 158 | if (node->hasAttribute("image_name")) |
159 | { | 159 | { |
160 | node->getAttributeString("image_name", image_name); | 160 | node->getAttributeString("image_name", image_name); |