From 403701fecda3ae3813c8bdb2748d9291c70bf5d0 Mon Sep 17 00:00:00 2001 From: pjrm Date: Tue, 7 Apr 2009 04:04:51 +0000 Subject: [PATCH] functional noop: Clarify g_strcanon behaviour by not redundantly reassigning back to argument. --- src/selection-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 891e958a5..2ea1de143 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2519,7 +2519,7 @@ sp_selection_create_bitmap_copy (SPDesktop *desktop) gchar *filename = g_strdup_printf ("%s-%s-%u.png", document->name, SP_OBJECT_REPR(items->data)->attribute("id"), current); // Imagemagick is known not to handle spaces in filenames, so we replace anything but letters, // digits, and a few other chars, with "_" - filename = g_strcanon (filename, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.=+~$#@^&!?", '_'); + g_strcanon(filename, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.=+~$#@^&!?", '_'); // Build the complete path by adding document base dir, if set, otherwise home dir gchar * directory = NULL; -- 2.30.2