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/FtpConnection.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/FtpConnection.cc')
| -rw-r--r-- | src/FtpConnection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FtpConnection.cc b/src/FtpConnection.cc index 74f2f654..f690ae6b 100644 --- a/src/FtpConnection.cc +++ b/src/FtpConnection.cc @@ -291,7 +291,7 @@ bool FtpConnection::sendRest(const SharedHandle<Segment>& segment) { if(socketBuffer_.sendBufferIsEmpty()) { std::string request = "REST "; - if(segment.isNull()) { + if(!segment) { request += "0"; } else { request += util::itos(segment->getPositionToWrite()); |
