Seperated out my template algorithms and stuff.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@334 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-08 18:25:34 +00:00
parent f379abb200
commit a4dbdffcb8
16 changed files with 40 additions and 38 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
#include "config.h"
#include "core/download.h"
#include "utils/algorithm.h"
#include "rak/algorithm.h"
#include "canvas.h"
#include "utils.h"
@@ -26,10 +26,10 @@ WindowDownloadList::redraw() {
typedef std::pair<DList::iterator, DList::iterator> Range;
Range range = utils::advance_bidirectional(m_list->begin(),
*m_focus != m_list->end() ? *m_focus : m_list->begin(),
m_list->end(),
m_canvas->get_height() / 3);
Range range = rak::advance_bidirectional(m_list->begin(),
*m_focus != m_list->end() ? *m_focus : m_list->begin(),
m_list->end(),
m_canvas->get_height() / 3);
// Make sure we properly fill out the last lines so it looks like
// there are more torrents, yet don't hide it if we got the last one