[LyX/master] Const refactor

Yuriy Skalko yuriy.skalko at gmail.com
Fri Oct 16 04:47:58 UTC 2020


commit 4c8d262996f657b52dcf473897c0d4622bfda6b4
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Thu Oct 15 22:15:21 2020 +0300

    Const refactor
---
 src/BufferParams.cpp |    4 ++--
 src/BufferParams.h   |    4 ++--
 src/TextClass.h      |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 5f5a4cb..c44200d 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -567,7 +567,7 @@ AuthorList const & BufferParams::authors() const
 }
 
 
-void BufferParams::addAuthor(Author a)
+void BufferParams::addAuthor(Author const & a)
 {
 	author_map_[a.bufferId()] = pimpl_->authorlist.record(a);
 }
@@ -3509,7 +3509,7 @@ string const & BufferParams::defaultBiblioStyle() const
 }
 
 
-bool const & BufferParams::fullAuthorList() const
+bool BufferParams::fullAuthorList() const
 {
 	return documentClass().fullAuthorList();
 }
diff --git a/src/BufferParams.h b/src/BufferParams.h
index b42d622..0a68c47 100644
--- a/src/BufferParams.h
+++ b/src/BufferParams.h
@@ -446,7 +446,7 @@ public:
 	/// the author list for the document
 	AuthorList & authors();
 	AuthorList const & authors() const;
-	void addAuthor(Author a);
+	void addAuthor(Author const & a);
 
 	/// map of the file's author IDs to AuthorList indexes
 	typedef std::map<int, int> AuthorMap;
@@ -513,7 +513,7 @@ public:
 	/// Get the default BibTeX style file from the TextClass
 	std::string const & defaultBiblioStyle() const;
 	/// whether the BibTeX style supports full author lists
-	bool const & fullAuthorList() const;
+	bool fullAuthorList() const;
 	/// Check if a citation style is an alias to another style
 	std::string getCiteAlias(std::string const & s) const;
 
diff --git a/src/TextClass.h b/src/TextClass.h
index fa9ac20..6ba185a 100644
--- a/src/TextClass.h
+++ b/src/TextClass.h
@@ -553,9 +553,9 @@ public:
 	/// The maximum number of citations before "et al."
 	size_t max_citenames() const { return maxcitenames_; }
 	///
-	bool const & fullAuthorList() const { return cite_full_author_list_; }
+	bool fullAuthorList() const { return cite_full_author_list_; }
 	///
-	bool const & bibInToc() const { return bibintoc_; }
+	bool bibInToc() const { return bibintoc_; }
 protected:
 	/// Constructs a DocumentClass based upon a LayoutFile.
 	DocumentClass(LayoutFile const & tc);


More information about the lyx-cvs mailing list