![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
1 Nov
2008
1 Nov
'08
7:38 p.m.
Hi all,
I added a proper constructor for nodepath that does nothing at the moment. It should be private, people should use sp_nodepath_new to create new nodepaths. However, this does not work:
namespace Inkscape { namespace NodePath { class Path { private: Path() {}; friend Path * sp_nodepath_new (SPDesktop *, SPObject *, bool, const char *, SPItem *);
...
};
} }
Inkscape::NodePath::Path * sp_nodepath_new (SPDesktop * desktop, SPObject *object, bool show_handles, const char * repr_key = NULL, SPItem *item = NULL);
This gives a compiler error when newing Path in sp_nodepath_new.
Can someone else try and see if it works on Linux for example?
thanks a bunch,
Johan