• Vlad Zahorodnii's avatar
    Replace some if statements with a switch statement · e5dd5b6a
    Vlad Zahorodnii authored
    The switch case statement allows the compiler to optimize code. More
    specifically, if the values are densely packed, then the compiler may
    generate a jump table. The switch statement also looks cleaner.
    
    As for the if statements in adjustWorkArea(), they were overlooked by
    me after LayerSurfaceV1Interface::exclusiveEdge() had been introduced.
    e5dd5b6a
layershellv1integration.cpp 7.66 KB