mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
avoid an extra copy in FontIterator::operator*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9804 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
929bc8adad
commit
a10a536dcf
@ -1,3 +1,7 @@
|
||||
2005-04-06 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* FontIterator.C (operator*): avoid a copy of the font.
|
||||
|
||||
2005-04-10 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* rowpainter.C (getFont): fix language bug from previous fix
|
||||
|
@ -27,7 +27,7 @@ FontIterator::FontIterator(LyXText const & text, Paragraph const & par,
|
||||
{}
|
||||
|
||||
|
||||
LyXFont FontIterator::operator*() const
|
||||
LyXFont const & FontIterator::operator*() const
|
||||
{
|
||||
return font_;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
///
|
||||
FontIterator(LyXText const & text, Paragraph const & par, lyx::pos_type pos);
|
||||
///
|
||||
LyXFont operator*() const;
|
||||
LyXFont const & operator*() const;
|
||||
///
|
||||
FontIterator & operator++();
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user