There are still a few warnings of the kind
(style) Variable 'x' is assigned a value that is never used.
since I did not touch code where I was not sure whether there might be a real
bug, and I kept some for symmetry reasons as well.
{
if (!isValid())
return;
{
if (!isValid())
return;
- string const file = fromqstr(filenameED->text());
if (bc().policy().buttonStatus(ButtonPolicy::OKAY)) {
slotOK();
applyView();
if (bc().policy().buttonStatus(ButtonPolicy::OKAY)) {
slotOK();
applyView();
{
string const file_in = file.absFileName();
string const only_path = onlyPath(file_in);
{
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();
return make_pair(IDENTICAL_PATHS, FileName(file_in));
string mangled = file.mangledFileName();
void InsetQuotes::validate(LaTeXFeatures & features) 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
char type = quote_char[quote_index[side_][language_]];
#ifdef DO_USE_DEFAULT_LANGUAGE
if (features.bufferParams().language->lang() == "default"
#else
+ if (!features.useBabel()
#endif
&& lyxrc.fontenc != "T1") {
if (times_ == SingleQuotes)
#endif
&& lyxrc.fontenc != "T1") {
if (times_ == SingleQuotes)
getPolyglossiaEnvName(par_language): par_language->babel();
string const prev_lang = use_polyglossia ?
getPolyglossiaEnvName(prev_language) : prev_language->babel();
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 ?
string const outer_lang = use_polyglossia ?
getPolyglossiaEnvName(outer_language) : outer_language->babel();
string lang_begin_command = use_polyglossia ?
dst = FileName(dstname);
else
dst = makeAbsPath(dstname, absParent);
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))
FileName const srcpath = src.onlyPath();
FileName const dstpath = dst.onlyPath();
if (equivalent(srcpath, dstpath))