diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp
index 2cd770a5298796913b8dd8e7bfc5643727250113..9612bb8587526cf326bf7ede5210ed3940610df8 100644 (file)
--- a/src/xml/repr.cpp
+++ b/src/xml/repr.cpp
#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 *
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.
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.