Code

Removing cast and replacing with a proper definition.
authorTed Gould <ted@canonical.com>
Fri, 6 Jun 2008 16:26:17 +0000 (09:26 -0700)
committerTed Gould <ted@canonical.com>
Fri, 6 Jun 2008 16:26:17 +0000 (09:26 -0700)
src/extension/internal/filter/filter-file.cpp
src/extension/internal/filter/filter.h

index 2448eded9d0a4f7ed0f05555c97445373228876f..857c01a1c47bd1b77b3468cd8fbc5d5f58ebba3c 100644 (file)
@@ -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."));
index 28924988de66c001292c5340a480f061de6624b4..05fdcc4cdf1510fdca93c58a6309fc9d7c4dcaf5 100644 (file)
@@ -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);