From d1af3566872dfff2aeec84859c87f1f8d13f79df Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 2 Apr 2013 19:14:36 +0200 Subject: Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes. (bzr r11608.1.69) --- src/color-profile.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/color-profile.cpp') diff --git a/src/color-profile.cpp b/src/color-profile.cpp index 63cb3addc..f1d89111d 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -184,6 +184,18 @@ cmsHPROFILE ColorProfileImpl::getNULLProfile() { #endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2) + +#include "sp-factory.h" + +namespace { + SPObject* createColorProfile() { + return new Inkscape::ColorProfile(); + } + + bool rectRegistered = SPFactory::instance().registerObject("svg:color-profile", createColorProfile); +} + + /** * Register ColorProfile class and return its type. */ -- cgit v1.2.3