mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Improve style.
Thanks, José!
This commit is contained in:
parent
c76ce9fae8
commit
297eb4cd5c
@ -123,10 +123,7 @@ string LyXCiteEngine::getDefaultBiblio(CiteEngineType const & cet) const
|
|||||||
string res;
|
string res;
|
||||||
string const etp = theCiteEnginesList.getTypeAsString(cet) + ":";
|
string const etp = theCiteEnginesList.getTypeAsString(cet) + ":";
|
||||||
//check whether all of the required packages are available
|
//check whether all of the required packages are available
|
||||||
vector<string>::const_iterator it = default_biblios_.begin();
|
for (string const &s: default_biblios_) {
|
||||||
vector<string>::const_iterator end = default_biblios_.end();
|
|
||||||
for (; it != end; ++it) {
|
|
||||||
string const s = *it;
|
|
||||||
if (prefixIs(s, etp))
|
if (prefixIs(s, etp))
|
||||||
res = split(s, ':');
|
res = split(s, ':');
|
||||||
else if (!contains(s, ':') && res.empty())
|
else if (!contains(s, ':') && res.empty())
|
||||||
@ -139,13 +136,10 @@ string LyXCiteEngine::getDefaultBiblio(CiteEngineType const & cet) const
|
|||||||
bool LyXCiteEngine::isDefaultBiblio(string const & bf) const
|
bool LyXCiteEngine::isDefaultBiblio(string const & bf) const
|
||||||
{
|
{
|
||||||
string const bfs = ":" + bf;
|
string const bfs = ":" + bf;
|
||||||
vector<string>::const_iterator it = default_biblios_.begin();
|
for (string const &s: default_biblios_)
|
||||||
vector<string>::const_iterator end = default_biblios_.end();
|
|
||||||
for (; it != end; ++it) {
|
|
||||||
string const s = *it;
|
|
||||||
if (suffixIs(s, bfs) || bf == s)
|
if (suffixIs(s, bfs) || bf == s)
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user