* src/paragraph.C:

* src/paragraph.h: lookupChange(): return reference for performance optimization

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16615 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-01-08 22:21:57 +00:00
parent 904ccfa5bd
commit bc7d9340ae
2 changed files with 2 additions and 2 deletions

View File

@ -1431,7 +1431,7 @@ void Paragraph::setInsetOwner(InsetBase * inset)
}
Change const Paragraph::lookupChange(pos_type pos) const
Change const & Paragraph::lookupChange(pos_type pos) const
{
BOOST_ASSERT(pos <= size());
return pimpl_->lookupChange(pos);

View File

@ -193,7 +193,7 @@ public:
InsetBibitem * bibitem() const; // ale970302
/// look up change at given pos
Change const lookupChange(pos_type pos) const;
Change const & lookupChange(pos_type pos) const;
/// is there a change within the given range ?
bool isChanged(pos_type start, pos_type end) const;