[server] Small code cleanup in SurfaceInterface
ClosedPublic

Authored by romangg on May 29 2018, 10:37 AM.

Details

Summary

Use lambda function to reduce code duplication and put
function definitions in the same order as in the header file.

Test Plan

All autotests succeed.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
romangg created this revision.May 29 2018, 10:37 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 29 2018, 10:37 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
romangg requested review of this revision.May 29 2018, 10:37 AM

function definitions in correct order.

What's more correct about this order?

function definitions in correct order.

What's more correct about this order?

In surface_interface_p.h the functions are declared in this order:

void installPointerConstraint(LockedPointerInterface *lock);
void installPointerConstraint(ConfinedPointerInterface *confinement);
void installIdleInhibitor(IdleInhibitorInterface *inhibitor);

In the cpp file they were defined in a different order. It's just a small code style correction.

davidedmundson accepted this revision.Jun 4 2018, 10:31 AM
This revision is now accepted and ready to land.Jun 4 2018, 10:31 AM
romangg edited the summary of this revision. (Show Details)Jun 4 2018, 10:34 AM
This revision was automatically updated to reflect the committed changes.