rename variable

This commit is contained in:
chuanweizhang2013 2014-03-17 11:06:50 +08:00
parent ec6c4ddf64
commit 295bf7f7f2
2 changed files with 11 additions and 11 deletions

View File

@ -252,8 +252,8 @@ Console::Console()
, _running(false) , _running(false)
, _endThread(false) , _endThread(false)
, _sendDebugStrings(false) , _sendDebugStrings(false)
,_file_uploading(false) ,_fileUploading(false)
,_upload_file_size(0) ,_uploadFileSize(0)
{ {
// VS2012 doesn't support initializer list, so we create a new array and assign its elements to '_command'. // VS2012 doesn't support initializer list, so we create a new array and assign its elements to '_command'.
Command commands[] = { Command commands[] = {
@ -762,9 +762,9 @@ void Console::commandUpload(int fd, const std::string& args)
auto argv = split(args,' '); auto argv = split(args,' ');
if(argv.size() == 2) if(argv.size() == 2)
{ {
_upload_file_name = argv[0]; _uploadFileName = argv[0];
_upload_file_size = std::atoi(argv[1].c_str()); _uploadFileSize = std::atoi(argv[1].c_str());
_file_uploading = true; _fileUploading = true;
} }
else else
{ {
@ -970,7 +970,7 @@ void Console::loop()
for(const auto &fd: _fds) { for(const auto &fd: _fds) {
if(FD_ISSET(fd,&copy_set)) if(FD_ISSET(fd,&copy_set))
{ {
if(!_file_uploading) if(!_fileUploading)
{ {
if( ! parseCommand(fd) ) if( ! parseCommand(fd) )
{ {
@ -979,8 +979,8 @@ void Console::loop()
} }
else else
{ {
readfile(fd, _upload_file_name, _upload_file_size); readfile(fd, _uploadFileName, _uploadFileSize);
_file_uploading = false; _fileUploading = false;
} }
if(--nready <= 0) if(--nready <= 0)

View File

@ -128,9 +128,9 @@ protected:
bool _running; bool _running;
bool _endThread; bool _endThread;
bool _file_uploading; bool _fileUploading;
ssize_t _upload_file_size; ssize_t _uploadFileSize;
std::string _upload_file_name; std::string _uploadFileName;
std::string _writablePath; std::string _writablePath;
std::map<std::string, Command> _commands; std::map<std::string, Command> _commands;