commit 8414c38e4b6c1689f89edb3a1ee200de0c4315fa
Author: Richard Heck <[email protected]>
Date: Sun Mar 12 16:27:36 2017 -0400
Whitespace and const'ing.
---
src/BiblioInfo.cpp | 9 +++++----
src/BiblioInfo.h | 10 +++++-----
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index bfde294..6437ccf 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -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();
diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h
index f9126be..791f9cf 100644
--- a/src/BiblioInfo.h
+++ b/src/BiblioInfo.h
@@ -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.