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:
Jean-Marc Lasgouttes 2005-04-11 13:35:15 +00:00
parent 929bc8adad
commit a10a536dcf
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -27,7 +27,7 @@ FontIterator::FontIterator(LyXText const & text, Paragraph const & par,
{}
LyXFont FontIterator::operator*() const
LyXFont const & FontIterator::operator*() const
{
return font_;
}

View File

@ -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++();
///