mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Whitespace and const'ing.
This commit is contained in:
parent
797bb2df14
commit
8414c38e4b
@ -289,6 +289,7 @@ BibTeXInfo::BibTeXInfo(docstring const & key, docstring const & type)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
docstring const BibTeXInfo::getAuthorOrEditorList(Buffer const * buf,
|
||||
bool full, bool forceshort) const
|
||||
{
|
||||
@ -300,9 +301,9 @@ docstring const BibTeXInfo::getAuthorOrEditorList(Buffer const * buf,
|
||||
}
|
||||
|
||||
|
||||
docstring const BibTeXInfo::getAuthorList(Buffer const * buf, docstring author,
|
||||
bool full, bool forceshort, bool allnames,
|
||||
bool beginning) const
|
||||
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
|
||||
size_t maxnames = buf ?
|
||||
@ -364,7 +365,7 @@ docstring const BibTeXInfo::getAuthorList(Buffer const * buf, docstring author,
|
||||
: "%prename% %surname%";
|
||||
|
||||
// Shorten the list (with et al.) if forceshort is set
|
||||
// and the list can actually be shorten, else if maxcitenames
|
||||
// and the list can actually be shortened, else if maxcitenames
|
||||
// is passed and full is not set.
|
||||
bool shorten = forceshort && authors.size() > 1;
|
||||
vector<docstring>::const_iterator it = authors.begin();
|
||||
|
@ -59,12 +59,12 @@ public:
|
||||
/// used for sorting.
|
||||
/// This will be translated to the UI language if buf is null
|
||||
/// otherwise, it will be translated to the buffer language.
|
||||
docstring const getAuthorOrEditorList(Buffer const * buf = 0, bool full = false,
|
||||
bool forceshort = false) const;
|
||||
docstring const getAuthorOrEditorList(Buffer const * buf = 0,
|
||||
bool full = false, bool forceshort = false) const;
|
||||
/// Same for a specific author role (editor, author etc.)
|
||||
docstring const getAuthorList(Buffer const * buf = 0, docstring author = docstring(),
|
||||
bool full = false, bool forceshort = false,
|
||||
bool allnames = false, bool beginning = true) const;
|
||||
docstring const getAuthorList(Buffer const * buf, docstring const & author,
|
||||
bool const full = false, bool const forceshort = false,
|
||||
bool const allnames = false, bool const beginning = true) const;
|
||||
///
|
||||
docstring const getYear() const;
|
||||
/// \return formatted BibTeX data suitable for framing.
|
||||
|
Loading…
Reference in New Issue
Block a user