]> git.lyx.org Git - features.git/commitdiff
more constness, thanks Abdel
authorStephan Witt <switt@lyx.org>
Mon, 20 Sep 2010 06:54:34 +0000 (06:54 +0000)
committerStephan Witt <switt@lyx.org>
Mon, 20 Sep 2010 06:54:34 +0000 (06:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35463 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 11746f141c7fb9f53ec032cb79bd27ddd3602e25..b03766406453e2cd8af57e8df4f36465c2923638 100644 (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