mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 14:07:37 +03:00
2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed SharedHandle::isNull(). Instead we added operator* and operator unspecified_bool_type. Removed use of WeakHandle and replaced with raw pointer.
This commit is contained in:
parent
f6f5a7e5ee
commit
93e5dbed32
181 changed files with 911 additions and 876 deletions
|
@ -58,11 +58,11 @@ private:
|
|||
|
||||
SharedHandle<Peer> peer_;
|
||||
|
||||
WeakHandle<BtMessageDispatcher> dispatcher_;
|
||||
BtMessageDispatcher* dispatcher_;
|
||||
|
||||
WeakHandle<BtMessageFactory> messageFactory_;
|
||||
BtMessageFactory* messageFactory_;
|
||||
|
||||
WeakHandle<UTMetadataRequestTracker> tracker_;
|
||||
UTMetadataRequestTracker* tracker_;
|
||||
|
||||
Logger* logger_;
|
||||
public:
|
||||
|
@ -78,12 +78,12 @@ public:
|
|||
dctx_ = dctx;
|
||||
}
|
||||
|
||||
void setBtMessageDispatcher(const WeakHandle<BtMessageDispatcher>& disp)
|
||||
void setBtMessageDispatcher(BtMessageDispatcher* disp)
|
||||
{
|
||||
dispatcher_ = disp;
|
||||
}
|
||||
|
||||
void setBtMessageFactory(const WeakHandle<BtMessageFactory>& factory)
|
||||
void setBtMessageFactory(BtMessageFactory* factory)
|
||||
{
|
||||
messageFactory_ = factory;
|
||||
}
|
||||
|
@ -93,8 +93,7 @@ public:
|
|||
peer_ = peer;
|
||||
}
|
||||
|
||||
void setUTMetadataRequestTracker
|
||||
(const WeakHandle<UTMetadataRequestTracker>& tracker)
|
||||
void setUTMetadataRequestTracker(UTMetadataRequestTracker* tracker)
|
||||
{
|
||||
tracker_ = tracker;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue