From 4b220f6d3271815da71fcdb8ed9a2b6b373bce71 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Jun 2008 09:26:17 -0700 Subject: [PATCH] Removing cast and replacing with a proper definition. --- src/extension/internal/filter/filter-file.cpp | 4 ++-- src/extension/internal/filter/filter.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2