aboutsummaryrefslogtreecommitdiff
path: root/brillo/any.cc
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/any.cc')
-rw-r--r--brillo/any.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/brillo/any.cc b/brillo/any.cc
index d2313c5..f84badf 100644
--- a/brillo/any.cc
+++ b/brillo/any.cc
@@ -34,7 +34,7 @@ Any& Any::operator=(Any&& rhs) {
bool Any::operator==(const Any& rhs) const {
// Make sure both objects contain data of the same type.
- if (strcmp(GetTypeNameInternal(), rhs.GetTypeNameInternal()) != 0)
+ if (strcmp(GetTypeTagInternal(), rhs.GetTypeTagInternal()) != 0)
return false;
if (IsEmpty())
@@ -43,9 +43,9 @@ bool Any::operator==(const Any& rhs) const {
return data_buffer_.GetDataPtr()->CompareEqual(rhs.data_buffer_.GetDataPtr());
}
-const char* Any::GetTypeNameInternal() const {
+const char* Any::GetTypeTagInternal() const {
if (!IsEmpty())
- return data_buffer_.GetDataPtr()->GetTypeName();
+ return data_buffer_.GetDataPtr()->GetTypeTag();
return "";
}