diff options
| author | MenTaLguY <mental@rydia.net> | 2006-02-06 04:15:05 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-02-06 04:15:05 +0000 |
| commit | 4f46bb0e09ddfa540b60bd4d152385729127aceb (patch) | |
| tree | 7b30dc6f0d64d847c422352d23ef1187ec04802a /src/xml/simple-session.cpp | |
| parent | silence warnings (diff) | |
| download | inkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.tar.gz inkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.zip | |
replace Util::SharedCStringPtr with the more general Util::shared_ptr<>
(bzr r87)
Diffstat (limited to 'src/xml/simple-session.cpp')
| -rw-r--r-- | src/xml/simple-session.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<char> old_content, + Util::shared_ptr<char> 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<char> old_value, + Util::shared_ptr<char> new_value) { if (_in_transaction) { _log_builder.setAttribute(node, name, old_value, new_value); |
