From bcb8de973abcbf6bc0cb1c46e764276c34fa5380 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2002 00:00:03 +0000 Subject: [PATCH] const cast to the python function --- src/openbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2