Some const correctness in the Java pseudo core.
This commit is contained in:
@ -85,11 +85,12 @@ Iterator::~Iterator()
|
||||
// Collection
|
||||
// ----------------
|
||||
|
||||
void Collection::intoStringBuffer(misc::StringBuffer *sb)
|
||||
void
|
||||
Collection::intoStringBuffer( misc::StringBuffer *sb ) const
|
||||
{
|
||||
sb->append("{ ");
|
||||
bool first = true;
|
||||
for (Iterator it = iterator(); it.hasNext(); ) {
|
||||
for (Iterator it = const_cast< Collection * >( this )->iterator(); it.hasNext(); ) {
|
||||
if (!first)
|
||||
sb->append(", ");
|
||||
it.getNext()->intoStringBuffer(sb);
|
||||
|
||||
Reference in New Issue
Block a user