X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FBiblioInfo.cpp;h=07c0b67f9aa2712e6fcdab44c7e5efbc88439d8a;hb=ab81c23656b59aa14c41b8acc45f0f3e410ed785;hp=1e2a1be769bf2048db9ce85fa78a47108ef67e8a;hpb=1a8fd56333f2070c997046b9aa3dde7567623779;p=lyx.git diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 1e2a1be769..07c0b67f9a 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -503,8 +503,8 @@ docstring const BibTeXInfo::getAuthorOrEditorList(Buffer const * buf, } -docstring const BibTeXInfo::getAuthorList(Buffer const * buf, - docstring const & author, bool const full, bool const forceshort, +docstring const BibTeXInfo::getAuthorList(Buffer const * buf, + docstring const & author, bool const full, bool const forceshort, bool const allnames, bool const beginning) const { // Maxnames treshold depend on engine @@ -760,7 +760,7 @@ docstring parseOptions(docstring const & format, string & optkey, /* FIXME Bug #9131 revealed an oddity in how we are generating citation information -when more than one key is given. We end up building a longer and longer format +when more than one key is given. We end up building a longer and longer format string as we go, which we then have to re-parse, over and over and over again, rather than generating the information for the individual keys and then putting all of that together. We do that to deal with the way separators work, from what @@ -1367,21 +1367,21 @@ bool BiblioInfo::isBibtex(docstring const & key) const } -vector const BiblioInfo::getCiteStrings( +BiblioInfo::CiteStringMap const BiblioInfo::getCiteStrings( vector const & keys, vector const & styles, Buffer const & buf, CiteItem const & ci) const { if (empty()) - return vector(); + return vector>(); string style; - vector vec(styles.size()); - for (size_t i = 0; i != vec.size(); ++i) { + CiteStringMap csm(styles.size()); + for (size_t i = 0; i != csm.size(); ++i) { style = styles[i].name; - vec[i] = getLabel(keys, buf, style, ci); + csm[i] = make_pair(from_ascii(style), getLabel(keys, buf, style, ci)); } - return vec; + return csm; }