Fix the weird error by GCC7 that fails to match the correct parent method.
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Thu, 24 Feb 2022 16:58:51 +0000 (16:58 +0000)
committerRoger Shimizu <rosh@debian.org>
Thu, 24 Feb 2022 16:58:51 +0000 (16:58 +0000)
Forwarded: not-needed

Gbp-Pq: Topic system/core
Gbp-Pq: Name Vector-cast.patch

system/core/libutils/include/utils/Vector.h

index ddf71de240efeed2e932afe7ecf7012d6871779f..7f91a35e3738a432b5fb2b82500014fdc0ce8fa0 100644 (file)
@@ -258,7 +258,7 @@ Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) {
 
 template<class TYPE> inline
 const Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) const {
-    VectorImpl::operator = (static_cast<const VectorImpl&>(rhs));
+    VectorImpl::operator = (rhs);
     return *this;
 }