Some const correctness in the Java pseudo core.

This commit is contained in:
2025-08-21 17:17:43 -04:00
parent 455169074a
commit b934b115ed
11 changed files with 35 additions and 23 deletions

View File

@ -37,13 +37,13 @@ protected:
void registerName (const char *className, std::type_index index);
public:
void intoStringBuffer(misc::StringBuffer *sb) override;
void intoStringBuffer(misc::StringBuffer *sb) const override;
/**
* \brief Return the name, under which the class of this object was
* registered.
*/
const char *getClassName() { return classNames.at( typeid( *this ) ).c_str(); }
const char *getClassName() const { return classNames.at( typeid( *this ) ).c_str(); }
};
} // namespace identity