From 26813996e2bdb4a71c9200729844e3cfe8feda78 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Wed, 11 Sep 2019 20:29:58 -0400 Subject: [PATCH] Constify, largely for debugging purposes --- src/insets/InsetInclude.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; -- 2.39.2