* 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:
Michael Schmitt 2007-03-04 09:37:32 +00:00
parent edcac9ea02
commit f19b1fa09a
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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;