summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2007-09-16 14:28:24 +0000
committerpjrm <pjrm@users.sourceforge.net>2007-09-16 14:28:24 +0000
commitcedcb24bee198da20f1c15c37c32a23e90f4eee1 (patch)
tree15a1496a5fc27ce4db8dcfcef49e07421048fa40 /src/extension/implementation
parenttrivial: Address some g++-4.2 writable-strings warnings. (diff)
downloadinkscape-cedcb24bee198da20f1c15c37c32a23e90f4eee1.tar.gz
inkscape-cedcb24bee198da20f1c15c37c32a23e90f4eee1.zip
trivial: Address some g++-4.2 writable-strings warnings.
(bzr r3759)
Diffstat (limited to 'src/extension/implementation')
-rw-r--r--src/extension/implementation/script.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index 7a6b5ce5a..abc095b6b 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -83,9 +83,9 @@ void pump_events (void) {
//Interpreter lookup table
struct interpreter_t {
- gchar * identity;
- gchar * prefstring;
- gchar * defaultval;
+ gchar const *identity;
+ gchar const *prefstring;
+ gchar const *defaultval;
};
@@ -95,7 +95,7 @@ struct interpreter_t {
given script. It also tracks the preference to use to overwrite
the given interpreter to a custom one per user.
*/
-static interpreter_t interpreterTab[] = {
+static interpreter_t const interpreterTab[] = {
{"perl", "perl-interpreter", "perl" },
{"python", "python-interpreter", "python" },
{"ruby", "ruby-interpreter", "ruby" },
@@ -115,7 +115,7 @@ resolveInterpreterExecutable(const Glib::ustring &interpNameArg)
Glib::ustring interpName = interpNameArg;
- interpreter_t *interp;
+ interpreter_t const *interp;
bool foundInterp = false;
for (interp = interpreterTab ; interp->identity ; interp++ ){
if (interpName == interp->identity) {
@@ -130,8 +130,7 @@ resolveInterpreterExecutable(const Glib::ustring &interpNameArg)
interpName = interp->defaultval;
// 1. Check preferences
- gchar *prefInterp = (gchar *)prefs_get_string_attribute(
- "extensions", interp->prefstring);
+ gchar const *prefInterp = prefs_get_string_attribute("extensions", interp->prefstring);
if (prefInterp) {
interpName = prefInterp;