X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextCache.C;h=31f97029f08e170bebeb43cca037eeccd2fb2868;hb=1b0cfa4381f8efa0f724bfc661c108d73242d1d6;hp=f7133d60302feff5171c6861452159353fc453ac;hpb=76ef051b1cb1fb51c3ffd8ccc9105be4471e74d4;p=lyx.git diff --git a/src/TextCache.C b/src/TextCache.C index f7133d6030..31f97029f0 100644 --- a/src/TextCache.C +++ b/src/TextCache.C @@ -1,7 +1,7 @@ /* This file is part of - * ====================================================== - * - * LyX, The Document Processor + * ====================================================== + * + * LyX, The Document Processor * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team * @@ -16,11 +16,12 @@ #pragma implementation #endif -#include - #include "TextCache.h" #include "buffer.h" #include "bufferlist.h" +#include "debug.h" + +#include using std::ostream; using std::for_each; @@ -75,7 +76,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; }