mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* 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:
parent
904ccfa5bd
commit
bc7d9340ae
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user