more constness, thanks Abdel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35463 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-09-20 06:54:34 +00:00
parent 4580296b8f
commit f94e6274a9

View File

@ -86,9 +86,9 @@ public:
: range_(range), result_(result)
{}
///
FontSpan range() const { return range_; }
FontSpan const & range() const { return range_; }
///
void range(FontSpan r) { range_ = r; }
void range(FontSpan const & r) { range_ = r; }
///
SpellChecker::Result result() const { return result_; }
///
@ -96,7 +96,7 @@ public:
///
bool inside(pos_type pos) const { return range_.inside(pos); }
///
bool covered(FontSpan r) const
bool covered(FontSpan const & r) const
{
// 1. first of new range inside current range or
// 2. last of new range inside current range or