From f19b1fa09a0e1b51d0afac85a310fe251fafc8c7 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Sun, 4 Mar 2007 09:37:32 +0000 Subject: [PATCH] * src/author.[Ch]: constify AuthorList::get() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17401 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/author.C | 2 +- src/author.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/author.C b/src/author.C index ea05ccd83d..5eba438318 100644 --- a/src/author.C +++ b/src/author.C @@ -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()); diff --git a/src/author.h b/src/author.h index bf84737130..8830b470f0 100644 --- a/src/author.h +++ b/src/author.h @@ -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 Authors; -- 2.39.5