diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-07-31 22:07:29 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-07-31 22:12:06 +0400 |
commit | 8e29ce9f13f7e4b6c0296325287c05f78ff22ce0 (patch) | |
tree | c3420f601d23448e28439bbcd75c6aaf022b5d0c /src/fs_event_wrap.cc | |
parent | 3c6b5d5df1e445d080737e435675e11b102f0126 (diff) | |
download | android-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.tar.gz android-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.tar.bz2 android-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.zip |
src: lint c++ code
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r-- | src/fs_event_wrap.cc | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index d33308b4db..3843f5db50 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -41,14 +41,14 @@ static Cached<String> onchange_sym; static Cached<String> rename_sym; class FSEventWrap: public HandleWrap { -public: + public: static void Initialize(Handle<Object> target); static void New(const FunctionCallbackInfo<Value>& args); static void Start(const FunctionCallbackInfo<Value>& args); static void Close(const FunctionCallbackInfo<Value>& args); -private: - FSEventWrap(Handle<Object> object); + private: + explicit FSEventWrap(Handle<Object> object); virtual ~FSEventWrap(); static void OnEvent(uv_fs_event_t* handle, const char* filename, int events, @@ -147,14 +147,11 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename, // unreasonable, right? Still, we should revisit this before v1.0. if (status) { eventStr = String::Empty(node_isolate); - } - else if (events & UV_RENAME) { + } else if (events & UV_RENAME) { eventStr = rename_sym; - } - else if (events & UV_CHANGE) { + } else if (events & UV_CHANGE) { eventStr = change_sym; - } - else { + } else { assert(0 && "bad fs events flag"); abort(); } @@ -190,7 +187,6 @@ void FSEventWrap::Close(const FunctionCallbackInfo<Value>& args) { HandleWrap::Close(args); } - -} // namespace node +} // namespace node NODE_MODULE(node_fs_event_wrap, node::FSEventWrap::Initialize) |