Fixes warning: default label in switch which covers all enumeration valu... #771

Closed
wants to merge 1 commit into
from
Commits on Feb 1, 2013
  1. Fixes warning: default label in switch which covers all enumeration v…

    orj committed Feb 1, 2013
    …alues [-Wcovered-switch-default].
    
    Also simplifies the code.  Less lines and ensures there is always a return value from the method.  No need for switch or default case.