C++ Code Optimisation errors

int32 UC_LoopbackCounter::mfo_GetCurrentCount()
{
    return mvo_iCurrentCount >= mvo_iMaxCount ? 0 : mvo_iCurrentCount + 1;		
}

even smaller and does same job.

Also why is a function called GetCurrentCount returning an incremented number? Very weird naming.

Should it not be called GetNextNumber? or something similar?

2 Likes