diff options
| -rw-r--r-- | libs/binder/ndk/Android.bp | 4 | ||||
| -rw-r--r-- | libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp | 6 | ||||
| -rw-r--r-- | services/utils/tests/PriorityDumper_test.cpp | 2 |
3 files changed, 4 insertions, 8 deletions
diff --git a/libs/binder/ndk/Android.bp b/libs/binder/ndk/Android.bp index dc4e000766..d799c5f0c6 100644 --- a/libs/binder/ndk/Android.bp +++ b/libs/binder/ndk/Android.bp @@ -40,10 +40,6 @@ cc_library { ], version_script: "libbinder_ndk.map.txt", - stubs: { - symbol_file: "libbinder_ndk.map.txt", - versions: ["29"], - }, } ndk_headers { diff --git a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp index 3b89291dc8..b1e44bb8ad 100644 --- a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp +++ b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp @@ -896,7 +896,7 @@ inline bool convertTo( int const* constFds = static_cast<int const*>(baseFds.get()); numFds = baseNumFds; if (l->unflatten(constBuffer, size, constFds, numFds) != NO_ERROR) { - for (auto nhA : nhAA) { + for (const auto& nhA : nhAA) { for (auto nh : nhA) { if (nh != nullptr) { native_handle_close(nh); @@ -907,8 +907,8 @@ inline bool convertTo( return false; } - for (auto nhA : nhAA) { - for (auto nh : nhA) { + for (const auto& nhA : nhAA) { + for (const auto& nh : nhA) { if (nh != nullptr) { native_handle_delete(nh); } diff --git a/services/utils/tests/PriorityDumper_test.cpp b/services/utils/tests/PriorityDumper_test.cpp index 90cc6de790..2320a90950 100644 --- a/services/utils/tests/PriorityDumper_test.cpp +++ b/services/utils/tests/PriorityDumper_test.cpp @@ -54,7 +54,7 @@ public: }; static void addAll(Vector<String16>& av, const std::vector<std::string>& v) { - for (auto element : v) { + for (const auto& element : v) { av.add(String16(element.c_str())); } } |