]> Dogcows Code - chaz/openbox/commitdiff
const cast to the python function
authorDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:00:03 +0000 (00:00 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:00:03 +0000 (00:00 +0000)
src/openbox.cc

index 75d56041e305ecde479e819c978b0ec16fe1d78a..7a025242ee7b359e06bbddbd61dc91b11cc9fe47 100644 (file)
@@ -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<char*>(_scriptfilepath.c_str()));
     fclose(rcpyfd);
   }
  
This page took 0.023518 seconds and 4 git commands to generate.