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;
ostream & os;
};
+
void TextCache::show(ostream & os, string const & str)
{
os << "TextCache: " << str << endl;
}
-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)) {
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;
}