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/repr.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/repr.cpp')
| -rw-r--r-- | src/xml/repr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp index 2cd770a52..9612bb858 100644 --- a/src/xml/repr.cpp +++ b/src/xml/repr.cpp @@ -28,7 +28,7 @@ #include "xml/comment-node.h" #include "xml/simple-document.h" -using Inkscape::Util::SharedCStringPtr; +using Inkscape::Util::share_string; /// Returns new node. Inkscape::XML::Node * @@ -45,7 +45,7 @@ Inkscape::XML::Node * sp_repr_new_text(gchar const *content) { g_return_val_if_fail(content != NULL, NULL); - return new Inkscape::XML::TextNode(SharedCStringPtr::copy(content)); + return new Inkscape::XML::TextNode(share_string(content)); } /// Returns new commentnode with comment. See Inkscape::XML::CommentNode. @@ -53,7 +53,7 @@ Inkscape::XML::Node * sp_repr_new_comment(gchar const *comment) { g_return_val_if_fail(comment != NULL, NULL); - return new Inkscape::XML::CommentNode(SharedCStringPtr::copy(comment)); + return new Inkscape::XML::CommentNode(share_string(comment)); } /// Returns new document having as first child a node named rootname. |
