diff options
author | Ilya Matyukhin <ilyamaty@google.com> | 2019-02-13 17:03:37 -0800 |
---|---|---|
committer | Ilya Matyukhin <ilyamaty@google.com> | 2019-02-13 17:03:37 -0800 |
commit | f7e10f4a46ab6343b72d0a1e948d029a6a8be3ba (patch) | |
tree | 8855863f0e4e952da558bb3f8762a7d14cb72f47 /base | |
parent | dd0490cfd2d7179960d2af6e4b6ac10054dec1af (diff) | |
download | libhidl-f7e10f4a46ab6343b72d0a1e948d029a6a8be3ba.tar.gz |
Made hidl_vec(size_t size) explicit
Test: compiled
Change-Id: I07cfd3ff3dc5dbf10befe787ca4145dd9307079c
Diffstat (limited to 'base')
-rw-r--r-- | base/include/hidl/HidlSupport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h index 55f21ea..98b37ab 100644 --- a/base/include/hidl/HidlSupport.h +++ b/base/include/hidl/HidlSupport.h @@ -334,7 +334,7 @@ struct hidl_vec { } // Note, does not initialize primitive types. - hidl_vec(size_t size) : hidl_vec() { resize(size); } + explicit hidl_vec(size_t size) : hidl_vec() { resize(size); } hidl_vec(const hidl_vec<T> &other) : hidl_vec() { *this = other; |