]> git.lyx.org Git - lyx.git/blobdiff - src/TextCache.C
Point fix, earlier forgotten
[lyx.git] / src / TextCache.C
index f7133d60302feff5171c6861452159353fc453ac..509fd1e60a5b1c0cff4a4433931f9018af183938 100644 (file)
@@ -1,26 +1,22 @@
-/* This file is part of
- * ====================================================== 
- * 
- *           LyX, The Document Processor        
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team
+/**
+ * \file TextCache.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           This file is Copyright 2000-2001
- *           Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #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;
@@ -75,7 +71,7 @@ LyXText * TextCache::findFit(Buffer * b, int p)
        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;
        }