diff options
Diffstat (limited to 'linden/indra/llxml/llxmltree.h')
-rw-r--r-- | linden/indra/llxml/llxmltree.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/llxml/llxmltree.h b/linden/indra/llxml/llxmltree.h index 87fe4f5..5d475d0 100644 --- a/linden/indra/llxml/llxmltree.h +++ b/linden/indra/llxml/llxmltree.h | |||
@@ -65,7 +65,7 @@ public: | |||
65 | LLXmlTreeNode* getRoot() { return mRoot; } | 65 | LLXmlTreeNode* getRoot() { return mRoot; } |
66 | 66 | ||
67 | void dump(); | 67 | void dump(); |
68 | void dumpNode( LLXmlTreeNode* node, const LLString &prefix ); | 68 | void dumpNode( LLXmlTreeNode* node, const std::string& prefix ); |
69 | 69 | ||
70 | static LLStdStringHandle addAttributeString( const std::string& name) | 70 | static LLStdStringHandle addAttributeString( const std::string& name) |
71 | { | 71 | { |
@@ -126,7 +126,7 @@ public: | |||
126 | BOOL getFastAttributeVector3d( LLStdStringHandle cannonical_name, LLVector3d& value ); | 126 | BOOL getFastAttributeVector3d( LLStdStringHandle cannonical_name, LLVector3d& value ); |
127 | BOOL getFastAttributeQuat( LLStdStringHandle cannonical_name, LLQuaternion& value ); | 127 | BOOL getFastAttributeQuat( LLStdStringHandle cannonical_name, LLQuaternion& value ); |
128 | BOOL getFastAttributeUUID( LLStdStringHandle cannonical_name, LLUUID& value ); | 128 | BOOL getFastAttributeUUID( LLStdStringHandle cannonical_name, LLUUID& value ); |
129 | BOOL getFastAttributeString( LLStdStringHandle cannonical_name, LLString& value ); | 129 | BOOL getFastAttributeString( LLStdStringHandle cannonical_name, std::string& value ); |
130 | 130 | ||
131 | // Normal versions find 'name' in LLXmlTree::sAttributeKeys then call fast versions | 131 | // Normal versions find 'name' in LLXmlTree::sAttributeKeys then call fast versions |
132 | virtual BOOL getAttributeBOOL( const std::string& name, BOOL& value ); | 132 | virtual BOOL getAttributeBOOL( const std::string& name, BOOL& value ); |
@@ -145,13 +145,13 @@ public: | |||
145 | virtual BOOL getAttributeVector3d( const std::string& name, LLVector3d& value ); | 145 | virtual BOOL getAttributeVector3d( const std::string& name, LLVector3d& value ); |
146 | virtual BOOL getAttributeQuat( const std::string& name, LLQuaternion& value ); | 146 | virtual BOOL getAttributeQuat( const std::string& name, LLQuaternion& value ); |
147 | virtual BOOL getAttributeUUID( const std::string& name, LLUUID& value ); | 147 | virtual BOOL getAttributeUUID( const std::string& name, LLUUID& value ); |
148 | virtual BOOL getAttributeString( const std::string& name, LLString& value ); | 148 | virtual BOOL getAttributeString( const std::string& name, std::string& value ); |
149 | 149 | ||
150 | const LLString& getContents() | 150 | const std::string& getContents() |
151 | { | 151 | { |
152 | return mContents; | 152 | return mContents; |
153 | } | 153 | } |
154 | LLString getTextContents(); | 154 | std::string getTextContents(); |
155 | 155 | ||
156 | LLXmlTreeNode* getParent() { return mParent; } | 156 | LLXmlTreeNode* getParent() { return mParent; } |
157 | LLXmlTreeNode* getFirstChild(); | 157 | LLXmlTreeNode* getFirstChild(); |
@@ -161,7 +161,7 @@ public: | |||
161 | LLXmlTreeNode* getNextNamedChild(); // returns next child with name, NULL if none | 161 | LLXmlTreeNode* getNextNamedChild(); // returns next child with name, NULL if none |
162 | 162 | ||
163 | protected: | 163 | protected: |
164 | const LLString* getAttribute( LLStdStringHandle name) | 164 | const std::string* getAttribute( LLStdStringHandle name) |
165 | { | 165 | { |
166 | attribute_map_t::iterator iter = mAttributes.find(name); | 166 | attribute_map_t::iterator iter = mAttributes.find(name); |
167 | return (iter == mAttributes.end()) ? 0 : iter->second; | 167 | return (iter == mAttributes.end()) ? 0 : iter->second; |
@@ -172,15 +172,15 @@ private: | |||
172 | void appendContents( const std::string& str ); | 172 | void appendContents( const std::string& str ); |
173 | void addChild( LLXmlTreeNode* child ); | 173 | void addChild( LLXmlTreeNode* child ); |
174 | 174 | ||
175 | void dump( const LLString& prefix ); | 175 | void dump( const std::string& prefix ); |
176 | 176 | ||
177 | protected: | 177 | protected: |
178 | typedef std::map<LLStdStringHandle, const LLString*> attribute_map_t; | 178 | typedef std::map<LLStdStringHandle, const std::string*> attribute_map_t; |
179 | attribute_map_t mAttributes; | 179 | attribute_map_t mAttributes; |
180 | 180 | ||
181 | private: | 181 | private: |
182 | LLString mName; | 182 | std::string mName; |
183 | LLString mContents; | 183 | std::string mContents; |
184 | 184 | ||
185 | typedef std::list<class LLXmlTreeNode *> child_list_t; | 185 | typedef std::list<class LLXmlTreeNode *> child_list_t; |
186 | child_list_t mChildList; | 186 | child_list_t mChildList; |