mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
* 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:
parent
bc7d9340ae
commit
8b0b3f2909
@ -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());
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user