summaryrefslogtreecommitdiffstats
path: root/src/xml/text-node.h
diff options
context:
space:
mode:
authorJan Lingscheid <jan.linscheid@auticon.de>2017-10-18 14:03:34 +0000
committerJan Lingscheid <jan.linscheid@auticon.de>2017-10-18 14:03:34 +0000
commit41b862f1c4eaea48bdd0d546e2bb31907f15857b (patch)
treee667c91439f0f04aa1f2cec1d3eafddf80bc4ecc /src/xml/text-node.h
parentReplace boost::shared_ptr (diff)
downloadinkscape-41b862f1c4eaea48bdd0d546e2bb31907f15857b.tar.gz
inkscape-41b862f1c4eaea48bdd0d546e2bb31907f15857b.zip
Refactor Util::ptr_shared
Util::ptr_shared<T> was only used in its <char> specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway.
Diffstat (limited to 'src/xml/text-node.h')
-rw-r--r--src/xml/text-node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/text-node.h b/src/xml/text-node.h
index 53798b822..4d71203a5 100644
--- a/src/xml/text-node.h
+++ b/src/xml/text-node.h
@@ -26,13 +26,13 @@ namespace XML {
* @brief Text node, e.g. "Some text" in &lt;group&gt;Some text&lt;/group&gt;
*/
struct TextNode : public SimpleNode {
- TextNode(Util::ptr_shared<char> content, Document *doc)
+ TextNode(Util::ptr_shared content, Document *doc)
: SimpleNode(g_quark_from_static_string("string"), doc)
{
setContent(content);
_is_CData = false;
}
- TextNode(Util::ptr_shared<char> content, Document *doc, bool is_CData)
+ TextNode(Util::ptr_shared content, Document *doc, bool is_CData)
: SimpleNode(g_quark_from_static_string("string"), doc)
{
setContent(content);