stefanbeller/tiled — comment on commit c32ab9a35b606ed71e5c0ca9af4d19cac8d088fd
File: src/libtiled/layer.cpp line 90
By bjorn:

Please, no 'else' here (same above). There's no where else to go, so we can just avoid it. Personally I'd prefer:

return isObjectGroup() ? static_cast(this) : 0;