summaryrefslogtreecommitdiffstats
path: root/src/xml/pi-node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/pi-node.h')
-rw-r--r--src/xml/pi-node.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xml/pi-node.h b/src/xml/pi-node.h
index b89ef25a0..502c5cd71 100644
--- a/src/xml/pi-node.h
+++ b/src/xml/pi-node.h
@@ -23,16 +23,18 @@ namespace Inkscape {
namespace XML {
struct PINode : public SimpleNode {
- explicit PINode(GQuark target, Util::ptr_shared<char> content)
- : SimpleNode(target)
+ PINode(GQuark target, Util::ptr_shared<char> content, Document *doc)
+ : SimpleNode(target, doc)
{
setContent(content);
}
+ PINode(PINode const &other, Document *doc)
+ : SimpleNode(other, doc) {}
Inkscape::XML::NodeType type() const { return Inkscape::XML::PI_NODE; }
protected:
- SimpleNode *_duplicate(Document* /*doc*/) const { return new PINode(*this); }
+ SimpleNode *_duplicate(Document* doc) const { return new PINode(*this, doc); }
};
}