mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* src/author.[Ch]: constify AuthorList::get()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17401 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
edcac9ea02
commit
f19b1fa09a
@ -80,7 +80,7 @@ void AuthorList::record(int id, Author const & a)
|
||||
}
|
||||
|
||||
|
||||
Author const & AuthorList::get(int id)
|
||||
Author const & AuthorList::get(int id) const
|
||||
{
|
||||
Authors::const_iterator it(authors_.find(id));
|
||||
BOOST_ASSERT(it != authors_.end());
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
|
||||
void record(int id, Author const & a);
|
||||
|
||||
Author const & get(int id);
|
||||
Author const & get(int id) const;
|
||||
|
||||
typedef std::map<int, Author> Authors;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user