From: Ted Gould Date: Fri, 6 Jun 2008 16:26:17 +0000 (-0700) Subject: Removing cast and replacing with a proper definition. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b220f6d3271815da71fcdb8ed9a2b6b373bce71;p=inkscape.git Removing cast and replacing with a proper definition. --- diff --git a/src/extension/internal/filter/filter-file.cpp b/src/extension/internal/filter/filter-file.cpp index 2448eded9..857c01a1c 100644 --- a/src/extension/internal/filter/filter-file.cpp +++ b/src/extension/internal/filter/filter-file.cpp @@ -29,7 +29,7 @@ namespace Filter { void Filter::filters_all_files (void) { - filters_load_dir((gchar *)INKSCAPE_FILTERDIR, _("Bundled")); + filters_load_dir(INKSCAPE_FILTERDIR, _("Bundled")); filters_load_dir(profile_path("filters"), _("Personal")); return; @@ -38,7 +38,7 @@ Filter::filters_all_files (void) #define INKSCAPE_FILTER_FILE ".svg" void -Filter::filters_load_dir (gchar * dirname, gchar * menuname) +Filter::filters_load_dir (gchar const * dirname, gchar * menuname) { if (!dirname) { g_warning(_("Null external module directory name. Filters will not be loaded.")); diff --git a/src/extension/internal/filter/filter.h b/src/extension/internal/filter/filter.h index 28924988d..05fdcc4cd 100644 --- a/src/extension/internal/filter/filter.h +++ b/src/extension/internal/filter/filter.h @@ -41,7 +41,7 @@ public: /* File loader related */ static void filters_all_files(void); - static void filters_load_dir(gchar * filename, gchar * menuname); + static void filters_load_dir(gchar const * filename, gchar * menuname); static void filters_load_file(gchar * filename, gchar * menuname); static void filters_load_node(Inkscape::XML::Node * node, gchar * menuname);