Some const correctness in the Java pseudo core.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user