summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp6
-rw-r--r--src/libnrtype/font-lister.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 43c3045b1..3c21e62e4 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -268,6 +268,12 @@ namespace Inkscape
font_list_store->thaw_notify();
}
+Inkscape::FontLister* FontLister::get_instance ()
+{
+ static Inkscape::FontLister* instance = new Inkscape::FontLister();
+ return instance;
+}
+
void
FontLister::update_font_list_recursive( SPObject *r, std::list<Glib::ustring> *l ) {
diff --git a/src/libnrtype/font-lister.h b/src/libnrtype/font-lister.h
index c89dab550..09be16f24 100644
--- a/src/libnrtype/font-lister.h
+++ b/src/libnrtype/font-lister.h
@@ -149,12 +149,7 @@ namespace Inkscape
update_font_list_recursive( SPObject *r, std::list<Glib::ustring> *l );
public:
- static Inkscape::FontLister*
- get_instance ()
- {
- static Inkscape::FontLister* instance = new Inkscape::FontLister();
- return instance;
- }
+ static Inkscape::FontLister* get_instance ();
/** Takes a hand written font spec and returns a Pango generated one in
* standard form.