diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-25 07:22:49 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-25 07:22:49 +0000 |
commit | 613da238a19e4582214eda624eb7546953a67f53 (patch) | |
tree | 6ab8eb7dd82d252dfb2ba7ac5d40802523ce27fc | |
parent | 07161c118026475a5e80ded01c16e0f10d9765b1 (diff) | |
parent | 5cbff71f4584968a6f60384ddf14e3aa158181b8 (diff) | |
download | libhidl-613da238a19e4582214eda624eb7546953a67f53.tar.gz |
release-request-4f3e6ea6-241a-4b05-b30f-5977c3f8253d-for-git_oc-mr1-release-4357973 snap-temp-L90600000105740988
Change-Id: I4f1e2ff27737d5f4d2ae43b62cb4030eb1350b11
-rw-r--r-- | base/include/hidl/HidlInternal.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/base/include/hidl/HidlInternal.h b/base/include/hidl/HidlInternal.h index 3addf03..7a24cd5 100644 --- a/base/include/hidl/HidlInternal.h +++ b/base/include/hidl/HidlInternal.h @@ -44,15 +44,9 @@ struct hidl_pointer { hidl_pointer() : _pad(0) { } - hidl_pointer(T* ptr) - : mPointer(ptr) { - } - hidl_pointer(const hidl_pointer<T>& other) { - mPointer = other.mPointer; - } - hidl_pointer(hidl_pointer<T>&& other) { - *this = std::move(other); - } + hidl_pointer(T* ptr) : hidl_pointer() { mPointer = ptr; } + hidl_pointer(const hidl_pointer<T>& other) : hidl_pointer() { mPointer = other.mPointer; } + hidl_pointer(hidl_pointer<T>&& other) : hidl_pointer() { *this = std::move(other); } hidl_pointer &operator=(const hidl_pointer<T>& other) { mPointer = other.mPointer; |