From: Richard Kimberly Heck Date: Thu, 12 Sep 2019 00:29:58 +0000 (-0400) Subject: Constify, largely for debugging purposes X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1531 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=26813996e2bdb4a71c9200729844e3cfe8feda78;p=features.git Constify, largely for debugging purposes --- diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 281051541b..c889f1c942 100755 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -569,11 +569,9 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const from_utf8(masterBuffer->filePath()))); } - string exppath = incfile; - if (!runparams.export_folder.empty()) { - exppath = makeAbsPath(exppath, runparams.export_folder).realPath(); - FileName(exppath).onlyPath().createPath(); - } + string const exppath = runparams.export_folder.empty() ? + incfile : + makeAbsPath(exppath, runparams.export_folder).realPath(); // write it to a file (so far the complete file) string exportfile;