Skip to content
Commit e5dd5b6a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Replace some if statements with a switch statement

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.
parent 3805f212
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment