Fix all the lint errors.

Summary:
Scripted and removed all trailing spaces and converted all tabs to
spaces.

Also fixed other lint errors.
All lint errors from this point of time should be taken seriously.

Test Plan: make all check

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D7059
This commit is contained in:
Abhishek Kona 2012-11-28 16:42:36 -08:00
parent 9b838535d1
commit d29f181923
20 changed files with 120 additions and 118 deletions

View File

@ -452,7 +452,7 @@ struct ThreadState {
Stats stats;
SharedState* shared;
ThreadState(int index)
/* implicit */ ThreadState(int index)
: tid(index),
rand(1000 + index) {
}

View File

@ -1,9 +1,11 @@
// Copyright (c) 2012 Facebook.
#include "db/memtablelist.h"
#include <string>
#include "leveldb/db.h"
#include "db/memtable.h"
#include "db/memtablelist.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
#include "util/coding.h"

View File

@ -29,7 +29,7 @@ struct FileMetaData {
class VersionEdit {
public:
VersionEdit(int number_levels) :
/* implicit */ VersionEdit(int number_levels) :
number_levels_(number_levels) {
Clear();
}

View File

@ -153,7 +153,7 @@ class HdfsReadableFile: virtual public SequentialFile, virtual public RandomAcce
size = pFileInfo->mSize;
hdfsFreeFileInfo(pFileInfo, 1);
} else {
throw new leveldb::HdfsFatalException("fileSize on unknown file " +
throw leveldb::HdfsFatalException("fileSize on unknown file " +
filename_);
}
return size;