diff options
Diffstat (limited to 'linden/indra/newview/llviewchildren.cpp')
-rw-r--r-- | linden/indra/newview/llviewchildren.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewchildren.cpp b/linden/indra/newview/llviewchildren.cpp index b19a336..f96915b 100644 --- a/linden/indra/newview/llviewchildren.cpp +++ b/linden/indra/newview/llviewchildren.cpp | |||
@@ -52,18 +52,18 @@ LLViewChildren::LLViewChildren(LLPanel& parent) | |||
52 | } | 52 | } |
53 | 53 | ||
54 | 54 | ||
55 | void LLViewChildren::show(const char* id, bool visible) | 55 | void LLViewChildren::show(const std::string& id, bool visible) |
56 | { | 56 | { |
57 | mParent.childSetVisible(id, visible); | 57 | mParent.childSetVisible(id, visible); |
58 | } | 58 | } |
59 | 59 | ||
60 | void LLViewChildren::enable(const char* id, bool enabled) | 60 | void LLViewChildren::enable(const std::string& id, bool enabled) |
61 | { | 61 | { |
62 | mParent.childSetEnabled(id, enabled); | 62 | mParent.childSetEnabled(id, enabled); |
63 | } | 63 | } |
64 | 64 | ||
65 | void LLViewChildren::setText( | 65 | void LLViewChildren::setText( |
66 | const char* id, const std::string& text, bool visible) | 66 | const std::string& id, const std::string& text, bool visible) |
67 | { | 67 | { |
68 | LLTextBox* child = mParent.getChild<LLTextBox>(id); | 68 | LLTextBox* child = mParent.getChild<LLTextBox>(id); |
69 | if (child) | 69 | if (child) |
@@ -74,7 +74,7 @@ void LLViewChildren::setText( | |||
74 | } | 74 | } |
75 | 75 | ||
76 | void LLViewChildren::setWrappedText( | 76 | void LLViewChildren::setWrappedText( |
77 | const char* id, const std::string& text, bool visible) | 77 | const std::string& id, const std::string& text, bool visible) |
78 | { | 78 | { |
79 | LLTextBox* child = mParent.getChild<LLTextBox>(id); | 79 | LLTextBox* child = mParent.getChild<LLTextBox>(id); |
80 | if (child) | 80 | if (child) |
@@ -84,7 +84,7 @@ void LLViewChildren::setWrappedText( | |||
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
87 | void LLViewChildren::setBadge(const char* id, Badge badge, bool visible) | 87 | void LLViewChildren::setBadge(const std::string& id, Badge badge, bool visible) |
88 | { | 88 | { |
89 | LLIconCtrl* child = mParent.getChild<LLIconCtrl>(id); | 89 | LLIconCtrl* child = mParent.getChild<LLIconCtrl>(id); |
90 | if (child) | 90 | if (child) |
@@ -93,15 +93,15 @@ void LLViewChildren::setBadge(const char* id, Badge badge, bool visible) | |||
93 | switch (badge) | 93 | switch (badge) |
94 | { | 94 | { |
95 | default: | 95 | default: |
96 | case BADGE_OK: child->setImage("badge_ok.j2c"); break; | 96 | case BADGE_OK: child->setImage(std::string("badge_ok.j2c")); break; |
97 | case BADGE_NOTE: child->setImage("badge_note.j2c"); break; | 97 | case BADGE_NOTE: child->setImage(std::string("badge_note.j2c")); break; |
98 | case BADGE_WARN: child->setImage("badge_warn.j2c"); break; | 98 | case BADGE_WARN: child->setImage(std::string("badge_warn.j2c")); break; |
99 | case BADGE_ERROR: child->setImage("badge_error.j2c"); break; | 99 | case BADGE_ERROR: child->setImage(std::string("badge_error.j2c")); break; |
100 | } | 100 | } |
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | void LLViewChildren::setAction(const char* id, | 104 | void LLViewChildren::setAction(const std::string& id, |
105 | void(*function)(void*), void* value) | 105 | void(*function)(void*), void* value) |
106 | { | 106 | { |
107 | LLButton* button = mParent.getChild<LLButton>(id); | 107 | LLButton* button = mParent.getChild<LLButton>(id); |