X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextCache.C;h=5e11893eb98bda06fb8fd3a4e246c432b2a27139;hb=d597ece5e7efac2a25251034d89fa761759d28f7;hp=52645966f41ca9882b8bbee400de8e0f8bd8e5de;hpb=6bba977f42b0cde753ac2ffd26f3f9c6b32ba0b6;p=lyx.git diff --git a/src/TextCache.C b/src/TextCache.C index 52645966f4..5e11893eb9 100644 --- a/src/TextCache.C +++ b/src/TextCache.C @@ -35,7 +35,7 @@ class text_fits { public: text_fits(Buffer * b, int p) : buf(b), pw(p) {} - bool operator()(TextCache::value_type & vt) { + bool operator()(TextCache::value_type const & vt) const { if (vt.first == buf && vt.second.first == pw) return true; return false; @@ -70,6 +70,7 @@ private: ostream & os; }; + void TextCache::show(ostream & os, string const & str) { os << "TextCache: " << str << endl; @@ -84,7 +85,7 @@ void TextCache::show(ostream & os, TextCache::value_type const & vt) } -void TextCache::add(Buffer *buf, int workwidth, LyXText * text) +void TextCache::add(Buffer * buf, int workwidth, LyXText * text) { lyxerr.debug() << "TextCache::add " << text; if (bufferlist.isLoaded(buf)) { @@ -116,7 +117,7 @@ class has_buffer { public: has_buffer(Buffer * b) : buf(b) {} - bool operator()(TextCache::value_type & vt) { + bool operator()(TextCache::value_type const & vt) const{ if (vt.first == buf) return true; return false; }