diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
| commit | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (patch) | |
| tree | f657b55b41a05cf364403a36edf9d0921f426e7d /src/SessionSerializer.cc | |
| parent | f6f5a7e5eeec4f14418fec5a7be1bbe57a7ea7e1 (diff) | |
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.
Diffstat (limited to 'src/SessionSerializer.cc')
| -rw-r--r-- | src/SessionSerializer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc index 58335cdd..67357562 100644 --- a/src/SessionSerializer.cc +++ b/src/SessionSerializer.cc @@ -136,10 +136,10 @@ void writeDownloadResult const SharedHandle<DownloadResult>& dr) { const SharedHandle<MetadataInfo>& mi = dr->metadataInfo; - if(dr->belongsTo != 0 || (!mi.isNull() && mi->dataOnly())) { + if(dr->belongsTo != 0 || (mi && mi->dataOnly())) { return; } - if(mi.isNull()) { + if(!mi) { // only save first file entry if(dr->fileEntries.empty()) { return; |
