mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Fix #10867 compiler warnings.
This commit is contained in:
parent
fab87917ea
commit
fb93733fee
@ -452,33 +452,33 @@ QString GuiBibtex::browseBst(QString const & in_name) const
|
|||||||
|
|
||||||
QStringList GuiBibtex::bibStyles() const
|
QStringList GuiBibtex::bibStyles() const
|
||||||
{
|
{
|
||||||
QStringList data = texFileList("bstFiles.lst");
|
QStringList sdata = texFileList("bstFiles.lst");
|
||||||
// test whether we have a valid list, otherwise run rescan
|
// test whether we have a valid list, otherwise run rescan
|
||||||
if (data.isEmpty()) {
|
if (sdata.isEmpty()) {
|
||||||
rescanBibStyles();
|
rescanBibStyles();
|
||||||
data = texFileList("bstFiles.lst");
|
sdata = texFileList("bstFiles.lst");
|
||||||
}
|
}
|
||||||
for (int i = 0; i != data.size(); ++i)
|
for (int i = 0; i != sdata.size(); ++i)
|
||||||
data[i] = onlyFileName(data[i]);
|
sdata[i] = onlyFileName(sdata[i]);
|
||||||
// sort on filename only (no path)
|
// sort on filename only (no path)
|
||||||
data.sort();
|
sdata.sort();
|
||||||
return data;
|
return sdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QStringList GuiBibtex::bibFiles() const
|
QStringList GuiBibtex::bibFiles() const
|
||||||
{
|
{
|
||||||
QStringList data = texFileList("bibFiles.lst");
|
QStringList sdata = texFileList("bibFiles.lst");
|
||||||
// test whether we have a valid list, otherwise run rescan
|
// test whether we have a valid list, otherwise run rescan
|
||||||
if (data.isEmpty()) {
|
if (sdata.isEmpty()) {
|
||||||
rescanBibStyles();
|
rescanBibStyles();
|
||||||
data = texFileList("bibFiles.lst");
|
sdata = texFileList("bibFiles.lst");
|
||||||
}
|
}
|
||||||
for (int i = 0; i != data.size(); ++i)
|
for (int i = 0; i != sdata.size(); ++i)
|
||||||
data[i] = onlyFileName(data[i]);
|
sdata[i] = onlyFileName(sdata[i]);
|
||||||
// sort on filename only (no path)
|
// sort on filename only (no path)
|
||||||
data.sort();
|
sdata.sort();
|
||||||
return data;
|
return sdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -539,9 +539,9 @@ QString GuiBibtex::styleFile() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool GuiBibtex::initialiseParams(std::string const & data)
|
bool GuiBibtex::initialiseParams(std::string const & sdata)
|
||||||
{
|
{
|
||||||
InsetCommand::string2params(data, params_);
|
InsetCommand::string2params(sdata, params_);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user