index 8a6a464b4820350b72012c902fc45e8003b4684f..2df35e8abf2115a3eb127c9af449b445b4e9897d 100644 (file)
if (MessageUtilities::findTag(buf, msg)) {
oldval = Util::share_string(buf.data.c_str());
} else {
- oldval = Util::share_static("");
+ oldval = Util::share_static_string("");
}
buf.tag = MESSAGE_NEWVAL;
if (MessageUtilities::findTag(buf, msg)) {
newval = Util::share_string(buf.data.c_str());
} else {
- newval = Util::share_static("");
+ newval = Util::share_static_string("");
}
// 3. Find the node identified by the ID. If we cannot find it, return.
if (MessageUtilities::findTag(buf, msg)) {
newval = Util::share_string(buf.data.c_str());
} else {
- newval = Util::share_static("");
+ newval = Util::share_static_string("");
}
// 3. Extract optional attributes: old value. If we do not find it in the message,
if (MessageUtilities::findTag(buf, msg)) {
oldval = Util::share_string(buf.data.c_str());
} else {
- oldval = Util::share_static("");
+ oldval = Util::share_static_string("");
}
// 4. Look up this node in the local node database and external tracker.
// 5. If this node is in the actions queue and is marked as "new", we need to apply
// _all_ received attributes to it _before_ adding it to the document tree.
if (this->_newnodes.find(id) != this->_newnodes.end()) {
- node->setAttribute(key.c_str(), newval.cString());
+ node->setAttribute(key.c_str(), newval.pointer());
}
// 6. Deserialize the event.