mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Avoids const_cast in configure_command by using mutable
This commit is contained in:
parent
0fc6cfcdcb
commit
bfb6d68447
@ -174,9 +174,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());
|
||||
|
@ -157,7 +157,7 @@ private:
|
||||
mutable FileName document_dir_;
|
||||
mutable FileName temp_dir_;
|
||||
FileName system_temp_dir_;
|
||||
std::string configure_command_;
|
||||
mutable std::string configure_command_;
|
||||
bool explicit_user_support_dir_;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user