MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / SetLeafContentValue

Method SetLeafContentValue

xmpsdk/src/XML_Node.cpp:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129//==============================
130
131void XML_Node::SetLeafContentValue ( XMP_StringPtr newValue )
132{
133 XML_Node * valueNode;
134
135 if ( ! this->content.empty() ) {
136 valueNode = this->content[0];
137 } else {
138 valueNode = new XML_Node ( this, "", kCDataNode );
139 this->content.push_back ( valueNode );
140 }
141
142 valueNode->value = newValue;
143
144} // XML_Node::SetLeafContentValue
145
146// =================================================================================================
147// XML_Node::CountNamedElements

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected