From 7da5adce57abc2055561cde067b92c64700d1e3e Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 5 Mar 2017 19:35:16 +0100 Subject: [PATCH] indent++ --- generators/djvu/kdjvu.cpp | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/generators/djvu/kdjvu.cpp b/generators/djvu/kdjvu.cpp index c2e345ce7..210550729 100644 --- a/generators/djvu/kdjvu.cpp +++ b/generators/djvu/kdjvu.cpp @@ -909,27 +909,27 @@ QImage KDjVu::image( int page, int width, int height, int rotation ) { if ( d->m_cacheEnabled ) { - bool found = false; - QList::Iterator it = d->mImgCache.begin(), itEnd = d->mImgCache.end(); - for ( ; ( it != itEnd ) && !found; ++it ) - { - ImageCacheItem* cur = *it; - if ( ( cur->page == page ) && - ( rotation % 2 == 0 - ? cur->width == width && cur->height == height - : cur->width == height && cur->height == width ) ) - found = true; - } - if ( found ) - { - // taking the element and pushing to the top of the list - --it; - ImageCacheItem* cur2 = *it; - d->mImgCache.erase( it ); - d->mImgCache.push_front( cur2 ); + bool found = false; + QList::Iterator it = d->mImgCache.begin(), itEnd = d->mImgCache.end(); + for ( ; ( it != itEnd ) && !found; ++it ) + { + ImageCacheItem* cur = *it; + if ( ( cur->page == page ) && + ( rotation % 2 == 0 + ? cur->width == width && cur->height == height + : cur->width == height && cur->height == width ) ) + found = true; + } + if ( found ) + { + // taking the element and pushing to the top of the list + --it; + ImageCacheItem* cur2 = *it; + d->mImgCache.erase( it ); + d->mImgCache.push_front( cur2 ); - return cur2->img; - } + return cur2->img; + } } if ( !d->m_pages_cache.at( page ) )