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

@ -67,7 +67,7 @@ int Object::hashValue()
/**
* \brief Return an exact copy of the object.
*/
Object *Object::clone()
Object *Object::clone() const
{
misc::assertNotReached ();
return NULL;
@ -177,7 +177,7 @@ int Pointer::hashValue()
#endif
}
void Pointer::intoStringBuffer(misc::StringBuffer *sb)
void Pointer::intoStringBuffer(misc::StringBuffer *sb) const
{
char buf[64];
snprintf(buf, sizeof(buf), "%p", value);
@ -198,7 +198,7 @@ int Integer::hashValue()
return (int)value;
}
void Integer::intoStringBuffer(misc::StringBuffer *sb)
void Integer::intoStringBuffer(misc::StringBuffer *sb) const
{
char buf[64];
sprintf(buf, "%d", value);
@ -226,7 +226,7 @@ int Boolean::hashValue()
return value ? 1 : 0;
}
void Boolean::intoStringBuffer(misc::StringBuffer *sb)
void Boolean::intoStringBuffer(misc::StringBuffer *sb) const
{
sb->append(value ? "true" : "false");
}
@ -281,7 +281,7 @@ int ConstString::hashValue(const char *str)
return 0;
}
void ConstString::intoStringBuffer(misc::StringBuffer *sb)
void ConstString::intoStringBuffer(misc::StringBuffer *sb) const
{
sb->append(str);
}