X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.cpp;h=8e0d1beefda5a64ada774e747f6f67832ca7aab7;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=deefc4bb221e499e352f8154f2b898c21b4d7812;hpb=e1492a3ab175588198664c803bf50188439937e7;p=lyx.git diff --git a/src/Text.cpp b/src/Text.cpp index deefc4bb22..8e0d1beefd 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -586,7 +586,7 @@ class TextCompletionList : public CompletionList { public: /// - TextCompletionList(Cursor const & cur, WordList const * list) + TextCompletionList(Cursor const & cur, WordList const & list) : buffer_(cur.buffer()), list_(list) {} /// @@ -597,19 +597,19 @@ public: /// virtual size_t size() const { - return list_->size(); + return list_.size(); } /// virtual docstring const & data(size_t idx) const { - return list_->word(idx); + return list_.word(idx); } private: /// Buffer const * buffer_; /// - WordList const * list_; + WordList const & list_; }; @@ -2156,7 +2156,7 @@ bool Text::completionSupported(Cursor const & cur) const CompletionList const * Text::createCompletionList(Cursor const & cur) const { - WordList const * list = theWordList(cur.getFont().language()->lang()); + WordList const & list = theWordList(cur.getFont().language()->lang()); return new TextCompletionList(cur, list); }