mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Make some functions return const refs, and add a comment.
This commit is contained in:
parent
c0be76a2d6
commit
75aa0d61db
@ -86,12 +86,17 @@ public:
|
||||
///
|
||||
ColorCode bgcolor() const { return bgcolor_; }
|
||||
///
|
||||
Layout::LaTeXArgMap const & latexargs() const { return latexargs_; }
|
||||
///
|
||||
Layout::LaTeXArgMap const & postcommandargs() const { return postcommandargs_; }
|
||||
/// Returns latexargs() + postcommandargs().
|
||||
/// But note that it returns a *copy*, not a reference, so do not do
|
||||
/// anything like:
|
||||
/// Layout::LaTeXArgMap it = args().begin();
|
||||
/// Layout::LaTeXArgMap en = args().end();
|
||||
/// Those are iterators for different containers.
|
||||
Layout::LaTeXArgMap args() const;
|
||||
///
|
||||
Layout::LaTeXArgMap latexargs() const { return latexargs_; }
|
||||
///
|
||||
Layout::LaTeXArgMap postcommandargs() const { return postcommandargs_; }
|
||||
///
|
||||
unsigned int optArgs() const;
|
||||
///
|
||||
unsigned int requiredArgs() const;
|
||||
|
Loading…
Reference in New Issue
Block a user