• Explorer09's avatar
    Assert (Platform_meterTypes[0]==&CPUMeter_class) · 328de356
    Explorer09 authored
    Just assume Platform_meterTypes[0] is always &CPUMeter_class for every
    platform. This removes a conditional in AvailableMetersPanel_new().
    
    Also adds some comments about the logic here. Without assuming
    Platform_meterTypes[0], the (int i=1) clause in this for loop will not
    make sense. (I.e. Why not (int i=0)? )
    
    Also replaced a sprintf() call with safer snprintf() in code further
    below.
    328de356
AvailableMetersPanel.c 4.02 KB