diff --git a/src/frontends/qt4/GuiInclude.cpp b/src/frontends/qt4/GuiInclude.cpp index fe8cc3ba5b..e1fc275434 100644 --- a/src/frontends/qt4/GuiInclude.cpp +++ b/src/frontends/qt4/GuiInclude.cpp @@ -296,7 +296,6 @@ void GuiInclude::edit() { if (!isValid()) return; - string const file = fromqstr(filenameED->text()); if (bc().policy().buttonStatus(ButtonPolicy::OKAY)) { slotOK(); applyView(); diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index bc82db732b..83cd84ddf0 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -503,7 +503,7 @@ copyToDirIfNeeded(DocFileName const & file, string const & dir) { string const file_in = file.absFileName(); string const only_path = onlyPath(file_in); - if (rtrim(onlyPath(file_in) , "/") == rtrim(dir, "/")) + if (rtrim(only_path, "/") == rtrim(dir, "/")) return make_pair(IDENTICAL_PATHS, FileName(file_in)); string mangled = file.mangledFileName(); diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 9682d661d7..01776a30fd 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -339,13 +339,12 @@ void InsetQuotes::forOutliner(docstring & os, size_t) const void InsetQuotes::validate(LaTeXFeatures & features) const { - bool const use_babel = features.useBabel(); char type = quote_char[quote_index[side_][language_]]; #ifdef DO_USE_DEFAULT_LANGUAGE if (features.bufferParams().language->lang() == "default" #else - if (!use_babel + if (!features.useBabel() #endif && lyxrc.fontenc != "T1") { if (times_ == SingleQuotes) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 80cb990442..c14e8eea41 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -671,8 +671,6 @@ void TeXOnePar(Buffer const & buf, getPolyglossiaEnvName(par_language): par_language->babel(); string const prev_lang = use_polyglossia ? getPolyglossiaEnvName(prev_language) : prev_language->babel(); - string const doc_lang = use_polyglossia ? - getPolyglossiaEnvName(doc_language) : doc_language->babel(); string const outer_lang = use_polyglossia ? getPolyglossiaEnvName(outer_language) : outer_language->babel(); string lang_begin_command = use_polyglossia ? diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 961d51d322..d16c52ed2a 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2095,7 +2095,6 @@ void copy_file(FileName const & src, string dstname) dst = FileName(dstname); else dst = makeAbsPath(dstname, absParent); - string const absMaster = getMasterFilePath(false); FileName const srcpath = src.onlyPath(); FileName const dstpath = dst.onlyPath(); if (equivalent(srcpath, dstpath))