aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaternamedesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaternamedesc.cpp')
-rw-r--r--linden/indra/newview/llfloaternamedesc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaternamedesc.cpp b/linden/indra/newview/llfloaternamedesc.cpp
index f49c951..eddb4b3 100644
--- a/linden/indra/newview/llfloaternamedesc.cpp
+++ b/linden/indra/newview/llfloaternamedesc.cpp
@@ -45,7 +45,7 @@
45#include "lldir.h" 45#include "lldir.h"
46#include "llviewercontrol.h" 46#include "llviewercontrol.h"
47#include "llviewermenufile.h" // upload_new_resource() 47#include "llviewermenufile.h" // upload_new_resource()
48#include "llvieweruictrlfactory.h" 48#include "lluictrlfactory.h"
49 49
50// linden includes 50// linden includes
51#include "llassetstorage.h" 51#include "llassetstorage.h"
@@ -119,7 +119,7 @@ BOOL LLFloaterNameDesc::postBuild()
119 childSetCommitCallback("name_form", doCommit, this); 119 childSetCommitCallback("name_form", doCommit, this);
120 childSetValue("name_form", LLSD(asset_name)); 120 childSetValue("name_form", LLSD(asset_name));
121 121
122 LLLineEditor *NameEditor = LLViewerUICtrlFactory::getLineEditorByName(this, "name_form"); 122 LLLineEditor *NameEditor = getChild<LLLineEditor>("name_form");
123 if (NameEditor) 123 if (NameEditor)
124 { 124 {
125 NameEditor->setMaxTextLength(DB_INV_ITEM_NAME_STR_LEN); 125 NameEditor->setMaxTextLength(DB_INV_ITEM_NAME_STR_LEN);
@@ -131,7 +131,7 @@ BOOL LLFloaterNameDesc::postBuild()
131 131
132 r.setLeftTopAndSize( PREVIEW_HPAD, y, line_width, PREVIEW_LINE_HEIGHT ); 132 r.setLeftTopAndSize( PREVIEW_HPAD, y, line_width, PREVIEW_LINE_HEIGHT );
133 childSetCommitCallback("description_form", doCommit, this); 133 childSetCommitCallback("description_form", doCommit, this);
134 LLLineEditor *DescEditor = LLViewerUICtrlFactory::getLineEditorByName(this, "description_form"); 134 LLLineEditor *DescEditor = getChild<LLLineEditor>("description_form");
135 if (DescEditor) 135 if (DescEditor)
136 { 136 {
137 DescEditor->setMaxTextLength(DB_INV_ITEM_DESC_STR_LEN); 137 DescEditor->setMaxTextLength(DB_INV_ITEM_DESC_STR_LEN);