summaryrefslogtreecommitdiffstats
path: root/src/sp-path.h
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.h
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.h')
-rw-r--r--src/sp-path.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/sp-path.h b/src/sp-path.h
index a442c49dd..a9b9e7f68 100644
--- a/src/sp-path.h
+++ b/src/sp-path.h
@@ -22,9 +22,7 @@
class SPCurve;
class CPath;
-#define SP_TYPE_PATH (sp_path_get_type ())
#define SP_PATH(obj) ((SPPath*)obj)
-//#define SP_IS_PATH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPPath)))
#define SP_IS_PATH(obj) (dynamic_cast<const SPPath*>((SPObject*)obj))
/**
@@ -33,6 +31,8 @@ class CPath;
class SPPath : public SPShape {
public:
SPPath();
+ virtual ~SPPath();
+
CPath* cpath;
gint nodesInPath() const;
@@ -51,11 +51,6 @@ public:
SPConnEndPair connEndPair;
};
-struct SPPathClass {
- SPShapeClass shape_class;
-};
-
-
class CPath : public CShape {
public:
CPath(SPPath* path);
@@ -78,9 +73,6 @@ protected:
SPPath* sppath;
};
-
-GType sp_path_get_type (void);
-
#endif // SEEN_SP_PATH_H
/*