| Index: net/ftp/ftp_ctrl_response_buffer.cc
|
| diff --git a/net/ftp/ftp_ctrl_response_buffer.cc b/net/ftp/ftp_ctrl_response_buffer.cc
|
| index f7b14678095a7ecfa9bea48b832b79dd98cd498f..7ed262585c9aba2c3a666050d315e37488888b34 100644
|
| --- a/net/ftp/ftp_ctrl_response_buffer.cc
|
| +++ b/net/ftp/ftp_ctrl_response_buffer.cc
|
| @@ -16,16 +16,18 @@ namespace net {
|
| // static
|
| const int FtpCtrlResponse::kInvalidStatusCode = -1;
|
|
|
| -FtpCtrlResponse::FtpCtrlResponse() : status_code(kInvalidStatusCode) {}
|
| +FtpCtrlResponse::FtpCtrlResponse() : status_code(kInvalidStatusCode) {
|
| +}
|
|
|
| -FtpCtrlResponse::~FtpCtrlResponse() {}
|
| +FtpCtrlResponse::~FtpCtrlResponse() {
|
| +}
|
|
|
| FtpCtrlResponseBuffer::FtpCtrlResponseBuffer(const BoundNetLog& net_log)
|
| - : multiline_(false),
|
| - net_log_(net_log) {
|
| + : multiline_(false), net_log_(net_log) {
|
| }
|
|
|
| -FtpCtrlResponseBuffer::~FtpCtrlResponseBuffer() {}
|
| +FtpCtrlResponseBuffer::~FtpCtrlResponseBuffer() {
|
| +}
|
|
|
| int FtpCtrlResponseBuffer::ConsumeData(const char* data, int data_length) {
|
| buffer_.append(data, data_length);
|
| @@ -117,8 +119,8 @@ FtpCtrlResponseBuffer::ParsedLine FtpCtrlResponseBuffer::ParseLine(
|
| if (line.length() >= 3) {
|
| if (base::StringToInt(base::StringPiece(line.begin(), line.begin() + 3),
|
| &result.status_code))
|
| - result.has_status_code = (100 <= result.status_code &&
|
| - result.status_code <= 599);
|
| + result.has_status_code =
|
| + (100 <= result.status_code && result.status_code <= 599);
|
| if (result.has_status_code && line.length() >= 4 && line[3] == ' ') {
|
| result.is_complete = true;
|
| } else if (result.has_status_code && line.length() >= 4 && line[3] == '-') {
|
|
|