This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 357 for ps


Ignore:
Timestamp:
06/02/04 18:11:32 (21 years ago)
Author:
Simon Brenner
Message:
  • Minor GCC compat changes
  • return( [CLASS]() ); generates a parse error (GCC Bug)
Location:
ps/trunk/source/simulation
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/simulation/Collision.cpp

    r284 r357  
    4242
    4343    delete( entities );
    44     return( HEntity() );
     44    return HEntity();
    4545}
    4646
  • ps/trunk/source/simulation/Entity.h

    r284 r357  
    5050class CEntity
    5151{
    52     friend CEntityManager;
     52    friend class CEntityManager;
    5353private:
    5454    // Intrinsic properties
  • ps/trunk/source/simulation/EntityHandles.h

    r284 r357  
    3838class HEntity
    3939{
    40     friend CEntityManager;
     40    friend class CEntityManager;
    4141    u16 m_handle;
    4242    void addRef();
  • ps/trunk/source/simulation/EntityManager.h

    r284 r357  
    3030class CEntityManager : public Singleton<CEntityManager>
    3131{
    32 friend HEntity;
    33 friend CHandle;
     32friend class HEntity;
     33friend class CHandle;
    3434    CHandle m_entities[MAX_HANDLES];
    3535    std::vector<HEntity> m_reaper;
     
    5656
    5757#endif
     58
  • ps/trunk/source/simulation/EntityProperties.cpp

    r334 r357  
    300300        }
    301301    case PROP_PTR:
    302         return( CStr() );
    303     default:
    304         assert( 0 && "Invalid property type" );
    305     }
    306     return( CStr() );
     302        return CStr();
     303    default:
     304        assert( 0 && "Invalid property type" );
     305    }
     306    return CStr();
    307307}
    308308
     
    317317    case PROP_STRING:
    318318    case PROP_PTR:
    319         return( CVector3D() );
    320     default:
    321         assert( 0 && "Invalid property type" );
    322     }
    323     return( CVector3D() );
     319        return CVector3D();
     320    default:
     321        assert( 0 && "Invalid property type" );
     322    }
     323    return CVector3D();
    324324}
    325325
     
    552552        return( CStr( *m_floatptr ) );
    553553    default:
    554         return( CStr() );
     554        return CStr();
    555555    }
    556556}
     
    563563        return( *m_vector );
    564564    default:
    565         return( CVector3D() );
     565        return CVector3D();
    566566    }
    567567}
Note: See TracChangeset for help on using the changeset viewer.