mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 03:02:30 +00:00
Fixed bug in display code for peer percentage progress.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@325 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+3
-10
@@ -108,20 +108,13 @@ if_then(Cond c, Then t) {
|
||||
return _if_then<Cond, Then>(c, t);
|
||||
}
|
||||
|
||||
struct _call_delete
|
||||
: public std::unary_function<void, void> {
|
||||
|
||||
template <typename Type>
|
||||
void operator () (Type* t) {
|
||||
template <typename T>
|
||||
struct call_delete : public std::unary_function<T*, void> {
|
||||
void operator () (T* t) {
|
||||
delete t;
|
||||
}
|
||||
};
|
||||
|
||||
inline _call_delete
|
||||
call_delete() {
|
||||
return _call_delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user