summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian2017-02-28 17:06:51 -0600
committerMathias Agopian2017-03-03 16:47:47 -0600
commit22dbf3947fedf988e714a4703ddf85fc41413f90 (patch)
treead823e9592de58265e4740a4d1ae251bfa260348 /libutils/NativeHandle.cpp
parent6048d9db5f11045412504b533ea9a92a7df6354c (diff)
downloadplatform-system-core-22dbf3947fedf988e714a4703ddf85fc41413f90.tar.gz
platform-system-core-22dbf3947fedf988e714a4703ddf85fc41413f90.tar.xz
platform-system-core-22dbf3947fedf988e714a4703ddf85fc41413f90.zip
clean-up libutils includes
moved Foo.h as first include of Foo.cpp, and removed redundant includes. Made NativeHandle non virtual. Test: run & compile Bug: n/a Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a
Diffstat (limited to 'libutils/NativeHandle.cpp')
-rw-r--r--libutils/NativeHandle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libutils/NativeHandle.cpp b/libutils/NativeHandle.cpp
index e4daca7ff..97d06b8bd 100644
--- a/libutils/NativeHandle.cpp
+++ b/libutils/NativeHandle.cpp
@@ -19,14 +19,14 @@
19 19
20namespace android { 20namespace android {
21 21
22sp<NativeHandle> NativeHandle::create( 22sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) {
23 native_handle_t* handle, bool ownsHandle) {
24 return handle ? new NativeHandle(handle, ownsHandle) : NULL; 23 return handle ? new NativeHandle(handle, ownsHandle) : NULL;
25} 24}
26 25
27NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle) 26NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle)
28: mHandle(handle), mOwnsHandle(ownsHandle) 27 : mHandle(handle), mOwnsHandle(ownsHandle) {
29{} 28
29}
30 30
31NativeHandle::~NativeHandle() { 31NativeHandle::~NativeHandle() {
32 if (mOwnsHandle) { 32 if (mOwnsHandle) {