/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
+ * ======================================================
+ *
+ * LyX, The Document Processor
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team
*
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include <algorithm>
-
#include "TextCache.h"
#include "buffer.h"
+#include "lyxtext.h"
#include "bufferlist.h"
+#include "debug.h"
+
+#include <algorithm>
using std::ostream;
using std::for_each;
Cache::iterator it = find_if(cache.begin(), cache.end(),
text_fits(b, p));
if (it != cache.end()) {
- LyXText * tmp = (*it).second.second;
+ LyXText * tmp = it->second.second;
cache.erase(it);
return tmp;
}