index 76caf1e54e9628f289c25e2842baf26d922e4ef1..c8d873fd262c5dbdfb9a460032076a71b7b38ca6 100644 (file)
}
Node *SimpleSession::createTextNode(char const *content) {
- return new TextNode(Util::SharedCStringPtr::copy(content));
+ return new TextNode(Util::share_string(content));
}
Node *SimpleSession::createCommentNode(char const *content) {
- return new CommentNode(Util::SharedCStringPtr::copy(content));
+ return new CommentNode(Util::share_string(content));
}
void SimpleSession::notifyChildAdded(Node &parent,
}
void SimpleSession::notifyContentChanged(Node &node,
- Util::SharedCStringPtr old_content,
- Util::SharedCStringPtr new_content)
+ Util::shared_ptr<char> old_content,
+ Util::shared_ptr<char> new_content)
{
if (_in_transaction) {
_log_builder.setContent(node, old_content, new_content);
void SimpleSession::notifyAttributeChanged(Node &node,
GQuark name,
- Util::SharedCStringPtr old_value,
- Util::SharedCStringPtr new_value)
+ Util::shared_ptr<char> old_value,
+ Util::shared_ptr<char> new_value)
{
if (_in_transaction) {
_log_builder.setAttribute(node, name, old_value, new_value);