Ignore:
Timestamp:
Mar 5, 2024, 9:55:04 AM (4 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
af60383
Parents:
9262fe9
Message:

Removed casts around get_next (also replaced with direct field access) that are no longer needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r9262fe9 r44adf1b  
    101101DeclarationNode * DeclarationNode::clone() const {
    102102        DeclarationNode * newnode = new DeclarationNode;
    103         newnode->set_next( maybeCopy( get_next() ) );
     103        newnode->next = maybeCopy( next );
    104104        newnode->name = name ? new string( *name ) : nullptr;
    105105
     
    717717
    718718                // there may be typedefs chained onto the type
    719                 if ( o->get_next() ) {
    720                         set_last( o->get_next()->clone() );
     719                if ( o->next ) {
     720                        set_last( o->next->clone() );
    721721                } // if
    722722        } // if
Note: See TracChangeset for help on using the changeset viewer.