summaryrefslogtreecommitdiff
path: root/src/udp_wrap.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-07-31 22:07:29 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-07-31 22:12:06 +0400
commit8e29ce9f13f7e4b6c0296325287c05f78ff22ce0 (patch)
treec3420f601d23448e28439bbcd75c6aaf022b5d0c /src/udp_wrap.h
parent3c6b5d5df1e445d080737e435675e11b102f0126 (diff)
downloadandroid-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.tar.gz
android-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.tar.bz2
android-node-v8-8e29ce9f13f7e4b6c0296325287c05f78ff22ce0.zip
src: lint c++ code
Diffstat (limited to 'src/udp_wrap.h')
-rw-r--r--src/udp_wrap.h31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/udp_wrap.h b/src/udp_wrap.h
index 878ca2046c..fb73647045 100644
--- a/src/udp_wrap.h
+++ b/src/udp_wrap.h
@@ -1,5 +1,26 @@
-#ifndef UDP_WRAP_H_
-#define UDP_WRAP_H_
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to permit
+// persons to whom the Software is furnished to do so, subject to the
+// following conditions:
+//
+// The above copyright notice and this permission notice shall be included
+// in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+// USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+#ifndef SRC_UDP_WRAP_H_
+#define SRC_UDP_WRAP_H_
#include "node.h"
#include "req_wrap.h"
@@ -33,7 +54,7 @@ class UDPWrap: public HandleWrap {
uv_udp_t* UVHandle();
private:
- UDPWrap(v8::Handle<v8::Object> object);
+ explicit UDPWrap(v8::Handle<v8::Object> object);
virtual ~UDPWrap();
static void DoBind(const v8::FunctionCallbackInfo<v8::Value>& args,
@@ -54,6 +75,6 @@ class UDPWrap: public HandleWrap {
uv_udp_t handle_;
};
-} // namespace node
+} // namespace node
-#endif // UDP_WRAP_H_
+#endif // SRC_UDP_WRAP_H_