• Armin Le Grand's avatar
    WIP: Use ItemControlBlock as TypeInfo · 6c2f575f
    Armin Le Grand yazdı
    Removed last big change to have a global static
    ItemControlBlock registry. Thought about things
    and what is needed/wanted is RTTI for the Items.
    Instead of using typeid(T).hash_code() it is
    equally possible to use the ItemControlBlock of
    each Item - it exists once as global static
    instance. So use it's address. That way e.g. the
    ItemSet holding it *will* hjave a direct reference
    to the ItemControlBlock, so no need for a global
    registration.
    Checked, tested, adapted, works.
    
    Change-Id: I4c9b6bfe4ba6858b234238d6125793378574af87
    6c2f575f
sbxitem.cxx 3.89 KB