More virtual base fixups.

This commit is contained in:
2025-08-23 08:55:48 -04:00
parent 0bc863faf1
commit 13f931d82e
13 changed files with 31 additions and 31 deletions

View File

@ -28,9 +28,8 @@ class Object
public:
virtual ~Object();
virtual bool equals(const Object *other) const;
virtual bool equals(Object *other) final { return equals( &std::as_const( *other ) ); }
virtual int hashValue();
virtual Object *clone();
virtual Object *clone() const;
virtual void intoStringBuffer(misc::StringBuffer *sb) const;
std::string toString() const;
virtual size_t sizeOf();
@ -108,7 +107,7 @@ public:
Pointer(void *value) { this->value = value; }
bool equals(const Object *other) const override;
int hashValue();
void intoStringBuffer(misc::StringBuffer *sb);
void intoStringBuffer(misc::StringBuffer *sb) const override;
inline void *getValue() { return value; }
};
@ -134,7 +133,7 @@ public:
Integer(int value) { this->value = value; }
bool equals(const Object *other) const override;
int hashValue();
void intoStringBuffer(misc::StringBuffer *sb);
void intoStringBuffer(misc::StringBuffer *sb) const override;
int compareTo(Comparable *other);
inline int getValue() { return value; }
};
@ -151,7 +150,7 @@ public:
Boolean(bool value) { this->value = value; }
bool equals(const Object *other) const override;
int hashValue();
void intoStringBuffer(misc::StringBuffer *sb);
void intoStringBuffer(misc::StringBuffer *sb) const override;
int compareTo(Comparable *other);
inline bool getValue() { return value; }
};
@ -172,7 +171,7 @@ public:
bool equals(const Object *other) const override;
int hashValue();
int compareTo(Comparable *other);
void intoStringBuffer(misc::StringBuffer *sb);
void intoStringBuffer(misc::StringBuffer *sb) const override;
inline const char *chars() { return str; }