Commit 4bbc78b8 authored by Kenton Varda's avatar Kenton Varda

AnyList::operator== is not inline but was declared as such. Also made formatting…

AnyList::operator== is not inline but was declared as such. Also made formatting of operator declarations consistent.
parent 7d5a40bb
......@@ -199,7 +199,7 @@ Equality AnyPointer::Reader::equals(AnyPointer::Reader right) {
KJ_UNREACHABLE;
}
bool AnyPointer::Reader::operator ==(AnyPointer::Reader right) {
bool AnyPointer::Reader::operator==(AnyPointer::Reader right) {
switch(equals(right)) {
case Equality::EQUAL:
return true;
......@@ -212,7 +212,7 @@ bool AnyPointer::Reader::operator ==(AnyPointer::Reader right) {
KJ_UNREACHABLE;
}
bool AnyStruct::Reader::operator ==(AnyStruct::Reader right) {
bool AnyStruct::Reader::operator==(AnyStruct::Reader right) {
switch(equals(right)) {
case Equality::EQUAL:
return true;
......@@ -225,7 +225,7 @@ bool AnyStruct::Reader::operator ==(AnyStruct::Reader right) {
KJ_UNREACHABLE;
}
bool AnyList::Reader::operator ==(AnyList::Reader right) {
bool AnyList::Reader::operator==(AnyList::Reader right) {
switch(equals(right)) {
case Equality::EQUAL:
return true;
......
......@@ -106,8 +106,8 @@ struct AnyPointer {
inline bool isCapability() const { return getPointerType() == PointerType::CAPABILITY; }
Equality equals(AnyPointer::Reader right);
bool operator ==(AnyPointer::Reader right);
inline bool operator !=(AnyPointer::Reader right) {
bool operator==(AnyPointer::Reader right);
inline bool operator!=(AnyPointer::Reader right) {
return !(*this == right);
}
......@@ -161,10 +161,10 @@ struct AnyPointer {
inline Equality equals(AnyPointer::Reader right) {
return asReader().equals(right);
}
inline bool operator ==(AnyPointer::Reader right) {
inline bool operator==(AnyPointer::Reader right) {
return asReader() == right;
}
inline bool operator !=(AnyPointer::Reader right) {
inline bool operator!=(AnyPointer::Reader right) {
return !(*this == right);
}
......@@ -462,8 +462,8 @@ public:
}
Equality equals(AnyStruct::Reader right);
bool operator ==(AnyStruct::Reader right);
inline bool operator !=(AnyStruct::Reader right) {
bool operator==(AnyStruct::Reader right);
inline bool operator!=(AnyStruct::Reader right) {
return !(*this == right);
}
......@@ -500,10 +500,10 @@ public:
inline Equality equals(AnyStruct::Reader right) {
return asReader().equals(right);
}
inline bool operator ==(AnyStruct::Reader right) {
inline bool operator==(AnyStruct::Reader right) {
return asReader() == right;
}
inline bool operator !=(AnyStruct::Reader right) {
inline bool operator!=(AnyStruct::Reader right) {
return !(*this == right);
}
......@@ -617,8 +617,8 @@ public:
inline kj::ArrayPtr<const byte> getRawBytes() { return _reader.asRawBytes(); }
Equality equals(AnyList::Reader right);
inline bool operator ==(AnyList::Reader right);
inline bool operator !=(AnyList::Reader right) {
bool operator==(AnyList::Reader right);
inline bool operator!=(AnyList::Reader right) {
return !(*this == right);
}
......@@ -648,10 +648,10 @@ public:
inline uint size() { return _builder.size() / ELEMENTS; }
Equality equals(AnyList::Reader right);
inline bool operator ==(AnyList::Reader right) {
inline bool operator==(AnyList::Reader right) {
return asReader() == right;
}
inline bool operator !=(AnyList::Reader right) {
inline bool operator!=(AnyList::Reader right) {
return !(*this == right);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment