]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
GuiPainter.cpp: correct attempt from r35491
[lyx.git] / 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