From: Dana Jansens Date: Wed, 25 Dec 2002 00:00:03 +0000 (+0000) Subject: const cast to the python function X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=bcb8de973abcbf6bc0cb1c46e764276c34fa5380;p=chaz%2Fopenbox const cast to the python function --- diff --git a/src/openbox.cc b/src/openbox.cc index 75d56041..7a025242 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -155,7 +155,7 @@ Openbox::Openbox(int argc, char **argv) if (!rcpyfd) { printf("failed to load python file %s\n", _scriptfilepath.c_str()); } else { - PyRun_SimpleFile(rcpyfd, _scriptfilepath.c_str()); + PyRun_SimpleFile(rcpyfd, const_cast(_scriptfilepath.c_str())); fclose(rcpyfd); }