Changeset 29873 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- May 28, 2010 5:14:53 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62118
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/xml.cpp
r28800 r29873 1011 1011 AttributeNode* ElementNode::setAttribute(const char *pcszName, const char *pcszValue) 1012 1012 { 1013 AttributeNode *pattrReturn; 1013 1014 Data::AttributesMap::const_iterator it; 1014 1015 … … 1024 1025 // store 1025 1026 m->attribs[pcszKey] = pNew; 1027 pattrReturn = pNew.get(); 1026 1028 } 1027 1029 else 1028 1030 { 1029 // @todo 1030 throw LogicError("Attribute exists"); 1031 } 1032 1033 return NULL; 1031 // overwrite existing libxml attribute node 1032 xmlAttrPtr plibAttr = xmlSetProp(m_plibNode, (xmlChar*)pcszName, (xmlChar*)pcszValue); 1033 1034 // and fix our existing C++ side around it 1035 boost::shared_ptr<AttributeNode> pattr = it->second; 1036 pattr->m_plibAttr = plibAttr; // in case the xmlAttrPtr is different, I'm not sure 1037 1038 pattrReturn = pattr.get(); 1039 } 1040 1041 return pattrReturn; 1034 1042 1035 1043 }
Note:
See TracChangeset
for help on using the changeset viewer.