The branch, biblatex2, has been updated. - Log -----------------------------------------------------------------
commit 297eb4cd5caa33d0c2c67461eb83e963958d2253 Author: Juergen Spitzmueller <[email protected]> Date: Sat Dec 31 17:38:26 2016 +0100 Improve style. Thanks, José! diff --git a/src/CiteEnginesList.cpp b/src/CiteEnginesList.cpp index ee72875..279063c 100644 --- a/src/CiteEnginesList.cpp +++ b/src/CiteEnginesList.cpp @@ -123,10 +123,7 @@ string LyXCiteEngine::getDefaultBiblio(CiteEngineType const & cet) const string res; string const etp = theCiteEnginesList.getTypeAsString(cet) + ":"; //check whether all of the required packages are available - vector<string>::const_iterator it = default_biblios_.begin(); - vector<string>::const_iterator end = default_biblios_.end(); - for (; it != end; ++it) { - string const s = *it; + for (string const &s: default_biblios_) { if (prefixIs(s, etp)) res = split(s, ':'); else if (!contains(s, ':') && res.empty()) @@ -139,13 +136,10 @@ string LyXCiteEngine::getDefaultBiblio(CiteEngineType const & cet) const bool LyXCiteEngine::isDefaultBiblio(string const & bf) const { string const bfs = ":" + bf; - vector<string>::const_iterator it = default_biblios_.begin(); - vector<string>::const_iterator end = default_biblios_.end(); - for (; it != end; ++it) { - string const s = *it; + for (string const &s: default_biblios_) if (suffixIs(s, bfs) || bf == s) return true; - } + return false; } ----------------------------------------------------------------------- Summary of changes: src/CiteEnginesList.cpp | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) hooks/post-receive -- Repository for new features
