From 4f46bb0e09ddfa540b60bd4d152385729127aceb Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 6 Feb 2006 04:15:05 +0000 Subject: replace Util::SharedCStringPtr with the more general Util::shared_ptr<> (bzr r87) --- src/xml/simple-session.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/xml/simple-session.cpp') diff --git a/src/xml/simple-session.cpp b/src/xml/simple-session.cpp index 76caf1e54..c8d873fd2 100644 --- a/src/xml/simple-session.cpp +++ b/src/xml/simple-session.cpp @@ -52,11 +52,11 @@ Node *SimpleSession::createElementNode(char const *name) { } 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, @@ -88,8 +88,8 @@ void SimpleSession::notifyChildOrderChanged(Node &parent, } void SimpleSession::notifyContentChanged(Node &node, - Util::SharedCStringPtr old_content, - Util::SharedCStringPtr new_content) + Util::shared_ptr old_content, + Util::shared_ptr new_content) { if (_in_transaction) { _log_builder.setContent(node, old_content, new_content); @@ -98,8 +98,8 @@ void SimpleSession::notifyContentChanged(Node &node, void SimpleSession::notifyAttributeChanged(Node &node, GQuark name, - Util::SharedCStringPtr old_value, - Util::SharedCStringPtr new_value) + Util::shared_ptr old_value, + Util::shared_ptr new_value) { if (_in_transaction) { _log_builder.setAttribute(node, name, old_value, new_value); -- cgit v1.2.3