lullaby/modules/layout/layout.cc
// If it has weight, sum it up.  Otherwise, it is unresizable and should
// account for used size.
If it has weight, sum it up.  Otherwise, it is unresizable and should
account for used size.
If it has weight sum it up . Otherwise it is unresizable and should account for used size .
void UpdateWeightAndSize(float weight, float size, float* total_weight,
                         float* used_size) {
  if (weight > 0) {
    *total_weight += weight;
  } else {
    *used_size += size;
  }
}
void UpdateWeightAndSize ( float weight , float size , float * total_weight , float * used_size ) { if ( weight > 0 ) { * total_weight += weight ; } else { * used_size += size ; } }
If it has weight, sum it up.
If it has weight sum it up .