mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
Moving from algo back to std.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@238 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <algo/call.h>
|
||||
#include <algo/entry.h>
|
||||
#include <algo/lambda.h>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#include "canvas.h"
|
||||
#include "manager.h"
|
||||
#include "window_base.h"
|
||||
#include "window.h"
|
||||
|
||||
namespace display {
|
||||
|
||||
using namespace algo;
|
||||
|
||||
void
|
||||
Manager::adjust_layout() {
|
||||
adjust_row(begin(), end(), 0, 0, display::Canvas::get_screen_width(), display::Canvas::get_screen_height());
|
||||
@@ -43,7 +40,7 @@ Manager::adjust_row(iterator bItr, iterator eItr, int x, int y, int w, int h) {
|
||||
|
||||
void
|
||||
Manager::do_update() {
|
||||
std::for_each(begin(), end(), mem_fun(*mem_fun(_0(), &WindowBase::get_canvas), &Canvas::refresh));
|
||||
std::for_each(begin(), end(), std::mem_fun_ref(&ManagerElement::redraw));
|
||||
|
||||
Canvas::do_update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user