X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.h;h=72f8b89902350ecbbc6efca746e98a8d0ff7b8c8;hb=53ea0cdd2d96b95c1e964970131f970cd4ed1288;hp=34977dab015b563e6ce725cfad17c8e7d172a57b;hpb=553d896bb6919136c3f3cdad7509af42571a6119;p=lyx.git diff --git a/src/Text.h b/src/Text.h index 34977dab01..72f8b89902 100644 --- a/src/Text.h +++ b/src/Text.h @@ -128,7 +128,7 @@ public: Paragraph & getPar(pit_type pit) { return pars_[pit]; } // Returns the current font and depth as a message. /// FIXME: replace Cursor with DocIterator. - docstring currentState(Cursor & cur); + docstring currentState(Cursor const & cur) const; /** Find the word under \c from in the relative location * defined by \c word_location. @@ -254,7 +254,7 @@ public: double spacing(Buffer const & buffer, Paragraph const & par) const; /// make a suggestion for a label /// FIXME: replace Cursor with DocIterator. - docstring getPossibleLabel(Cursor & cur) const; + docstring getPossibleLabel(Cursor const & cur) const; /// is this paragraph right-to-left? bool isRTL(Buffer const &, Paragraph const & par) const;