From 8bc3e64ee696f87dcbf1eb1fec7f478279de13d7 Mon Sep 17 00:00:00 2001 From: yliang Date: Wed, 2 Jun 2010 21:15:22 +0000 Subject: [PATCH] Change variable name to comply with fb c++ coding style Summary: private member variable should be lower camel case with a tailing _ Test Plan: compile DiffCamp Revision: 120003 Reviewed By: pkhemani CC: agiardullo, pkhemani Revert Plan: OK git-svn-id: svn+ssh://tubbs/svnapps/fbomb/branches/scribe-os/fbcode/scribe@29008 2248de34-8caa-4a3c-bc55-5e52d9d7b73a --- src/store.cpp | 12 ++++++------ src/store.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/store.cpp b/src/store.cpp index cc0c4cb2..28ddaf91 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -594,7 +594,7 @@ FileStore::FileStore(StoreQueue* storeq, : FileStoreBase(storeq, category, "file", multi_category), isBufferFile(is_buffer_file), addNewlines(false), - lost_bytes(0) { + lostBytes_(0) { } FileStore::~FileStore() { @@ -910,9 +910,9 @@ void FileStore::deleteOldest(struct tm* now) { } shared_ptr deletefile = FileInterface::createFileInterface(fsType, makeFullFilename(index, now)); - if (lost_bytes) { - g_Handler->incCounter(categoryHandled, "bytes lost", lost_bytes); - lost_bytes = 0; + if (lostBytes_) { + g_Handler->incCounter(categoryHandled, "bytes lost", lostBytes_); + lostBytes_ = 0; } deletefile->deleteFile(); } @@ -1004,9 +1004,9 @@ bool FileStore::readOldest(/*out*/ boost::shared_ptr messages } } if (loss < 0) { - lost_bytes = -loss; + lostBytes_ = -loss; } else { - lost_bytes = 0; + lostBytes_ = 0; } infile->close(); diff --git a/src/store.h b/src/store.h index 6c3c855c..adb02239 100644 --- a/src/store.h +++ b/src/store.h @@ -229,7 +229,7 @@ class FileStore : public FileStoreBase { // disallow copy, assignment, and empty construction FileStore(FileStore& rhs); FileStore& operator=(FileStore& rhs); - long lost_bytes; + long lostBytes_; }; /*