]> git.lyx.org Git - features.git/commitdiff
Avoids const_cast in configure_command by using mutable
authorBenjamin Piwowarski <bpiwowar@lyx.org>
Fri, 21 Mar 2014 17:38:09 +0000 (18:38 +0100)
committerRichard Heck <rgheck@lyx.org>
Mon, 21 Apr 2014 15:51:57 +0000 (11:51 -0400)
src/support/Package.cpp

index f5ee5d5436fb5ee4a9457c67b27689f35e3bf21b..b4b0e1493df7d9f16965eb7c6567979d06f1602a 100644 (file)
@@ -154,9 +154,8 @@ Package::Package(string const & command_line_arg0,
 std::string const & Package::configure_command() const
 {
        if (configure_command_.empty()) {
-               std::string &command = const_cast<std::string&>(configure_command_);
                FileName const configure_script(addName(system_support().absFileName(), "configure.py"));
-               command = os::python() + ' ' +
+               configure_command_ = os::python() + ' ' +
                        quoteName(configure_script.toFilesystemEncoding()) +
                        with_version_suffix() + " --binary-dir=" +
                        quoteName(FileName(binary_dir().absFileName()).toFilesystemEncoding());