summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2018-03-13 15:48:25 -0500
committerYifan Hong2018-03-14 15:44:50 -0500
commit3dd2a31e669ba0746fcf5ad08f5442cdf969c63b (patch)
tree5578d43ecf0534556503bc473fa4c9576ecf3246 /ManifestHal.cpp
parent7900e2d723ba91b4801afacbcfc58ba0b854f2f5 (diff)
downloadplatform-system-libvintf-3dd2a31e669ba0746fcf5ad08f5442cdf969c63b.tar.gz
platform-system-libvintf-3dd2a31e669ba0746fcf5ad08f5442cdf969c63b.tar.xz
platform-system-libvintf-3dd2a31e669ba0746fcf5ad08f5442cdf969c63b.zip
ManifestHal: fix operator==
operator== doesn't compare some fields. Test: libvintf_test Test: vintf_object_test Bug: 73556059 Change-Id: Ic0da5ac3d7ed5068fc6af9cada1a9baa58fd41a2
Diffstat (limited to 'ManifestHal.cpp')
-rw-r--r--ManifestHal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ManifestHal.cpp b/ManifestHal.cpp
index aa9d358..7d687fc 100644
--- a/ManifestHal.cpp
+++ b/ManifestHal.cpp
@@ -40,7 +40,9 @@ bool ManifestHal::operator==(const ManifestHal &other) const {
40 return false; 40 return false;
41 if (versions != other.versions) 41 if (versions != other.versions)
42 return false; 42 return false;
43 // do not compare impl 43 if (!(transportArch == other.transportArch)) return false;
44 if (interfaces != other.interfaces) return false;
45 if (isOverride() != other.isOverride()) return false;
44 return true; 46 return true;
45} 47}
46 48