diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2009-05-03 05:16:27 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2009-05-03 05:16:27 +0000 |
| commit | e0c1b9ecbc0d21a2c698842a68f5e528edba11e9 (patch) | |
| tree | aeda891a17f7e904d00f2ead4c00af810e4a1150 /src/extension/init.cpp | |
| parent | more on BUG 322116: PDF export does not use the highest quality for rasterize... (diff) | |
| download | inkscape-e0c1b9ecbc0d21a2c698842a68f5e528edba11e9.tar.gz inkscape-e0c1b9ecbc0d21a2c698842a68f5e528edba11e9.zip | |
Warning cleanup
(bzr r7813)
Diffstat (limited to 'src/extension/init.cpp')
| -rw-r--r-- | src/extension/init.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/extension/init.cpp b/src/extension/init.cpp index 0dba9df8f..84cc45de9 100644 --- a/src/extension/init.cpp +++ b/src/extension/init.cpp @@ -120,8 +120,7 @@ static void update_pref(Glib::ustring const &pref_path, gchar const *pref_default) // , GSList *extension_family) { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - Glib::ustring pref = prefs->getString(pref_path); + Glib::ustring pref = Inkscape::Preferences::get()->getString(pref_path); /* gboolean missing=TRUE; for (GSList *list = extension_family; list; list = g_slist_next(list)) { @@ -134,7 +133,7 @@ update_pref(Glib::ustring const &pref_path, } */ if (!Inkscape::Extension::db.get( pref.data() ) /*missing*/) { - prefs->setString(pref_path, pref_default); + Inkscape::Preferences::get()->setString(pref_path, pref_default); } } @@ -148,8 +147,6 @@ update_pref(Glib::ustring const &pref_path, void init() { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - /* TODO: Change to Internal */ Internal::Svg::init(); Internal::Svgz::init(); |
