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 -3
View File
@@ -3,7 +3,7 @@
#include <stdexcept>
#include "core/download.h"
#include "utils/algorithm.h"
#include "rak/algorithm.h"
#include "window_file_list.h"
@@ -37,8 +37,10 @@ WindowFileList::redraw() {
typedef std::pair<unsigned int, unsigned int> Range;
Range range = utils::advance_bidirectional<unsigned int>(0, *m_focus, m_download->get_download().get_entry_size(),
m_canvas->get_height());
Range range = rak::advance_bidirectional<unsigned int>(0,
*m_focus,
m_download->get_download().get_entry_size(),
m_canvas->get_height());
while (range.first != range.second) {
torrent::Entry e = m_download->get_download().get_entry(range.first);