]> git.lyx.org Git - features.git/commitdiff
Constify, largely for debugging purposes
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 00:29:58 +0000 (20:29 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 00:29:58 +0000 (20:29 -0400)
src/insets/InsetInclude.cpp

index 281051541bcb04083f3d42fd89a4a5efe0dc0cc1..c889f1c94251bb8cad3113a15a56b32a57ef823a 100755 (executable)
@@ -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;