summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-02 21:01:45 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-02 21:01:45 +0000
commit8443720ce6429b9beec839e60b8a808595f4ba72 (patch)
tree3e08d3c631c2590a19481613a6e31cf09f6bed42 /src/sp-path.cpp
parentReplaced some forgotten old casting macros. (diff)
downloadinkscape-8443720ce6429b9beec839e60b8a808595f4ba72.tar.gz
inkscape-8443720ce6429b9beec839e60b8a808595f4ba72.zip
Cleaned up a bit. Uses some C++11 features.
(bzr r11608.1.72)
Diffstat (limited to 'src/sp-path.cpp')
-rw-r--r--src/sp-path.cpp36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index bc6a2cb21..394b815fb 100644
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
@@ -61,24 +61,6 @@ namespace {
bool pathRegistered = SPFactory::instance().registerObject("svg:path", createPath);
}
-
-static void sp_path_finalize(GObject *obj);
-
-G_DEFINE_TYPE(SPPath, sp_path, G_TYPE_OBJECT);
-
-/**
- * Does the object-oriented work of initializing the class structure
- * including parent class, and registers function pointers for
- * the functions build, set, write, and set_transform.
- */
-static void
-sp_path_class_init(SPPathClass * klass)
-{
- GObjectClass *gobject_class = (GObjectClass *) klass;
- gobject_class->finalize = sp_path_finalize;
-}
-
-
gint SPPath::nodesInPath() const
{
return _curve ? _curve->nodes_in_path() : 0;
@@ -156,25 +138,9 @@ SPPath::SPPath() : SPShape(), connEndPair(this) {
path->clpeitem = path->cpath;
path->citem = path->cpath;
path->cobject = path->cpath;
-
- //new (&path->connEndPair) SPConnEndPair(path);
-}
-
-/**
- * Initializes an SPPath.
- */
-static void
-sp_path_init(SPPath *path)
-{
- new (path) SPPath();
}
-static void
-sp_path_finalize(GObject *obj)
-{
- SPPath *path = (SPPath *) obj;
-
- path->connEndPair.~SPConnEndPair();
+SPPath::~SPPath() {
}
void CPath::build(SPDocument *document, Inkscape::XML::Node *repr) {