]> git.lyx.org Git - features.git/commitdiff
* src/author.[Ch]: constify AuthorList::get()
authorMichael Schmitt <michael.schmitt@teststep.org>
Sun, 4 Mar 2007 09:37:32 +0000 (09:37 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sun, 4 Mar 2007 09:37:32 +0000 (09:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17401 a592a061-630c-0410-9148-cb99ea01b6c8

src/author.C
src/author.h

index ea05ccd83d53dda7c494f6b814a1a1c09945dfb9..5eba4383183e50f3203cff3f16fc819fb219dd11 100644 (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());
index bf84737130507c08f70c4652369ca84694236483..8830b470f0a89cfc9b35f6061f1e698e4ccbcd7c 100644 (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;