* src/paragraph_pimpl.C:

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

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

View File

@ -151,7 +151,7 @@ void Paragraph::Pimpl::setChange(pos_type pos, Change const & change)
}
Change const Paragraph::Pimpl::lookupChange(pos_type pos) const
Change const & Paragraph::Pimpl::lookupChange(pos_type pos) const
{
BOOST_ASSERT(pos >= 0 && pos <= size());

View File

@ -40,7 +40,7 @@ public:
// Change tracking
//
/// 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;
/// will the paragraph be physically merged with the next