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:
rakshasa
2005-03-05 02:20:45 +00:00
parent c15d840962
commit 2dc7ffdb8f
7 changed files with 25 additions and 17 deletions
+3 -10
View File
@@ -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