> CompPoint remainingVp = CompPoint (screen->vpSize ().width () - wvp.x (), > screen->vpSize ().height () - wvp.y ());
This is an inefficient way to write:
CompPoint remainingVp (screen->vpSize ().width () - wvp.x (), screen->vpSize ().height () - wvp.y ());
The first way calls the constructor, then the copy constructor, then the destructor just to initialize remainingVp.
Please just use a constructor call. Please fix declarations in compiz::viewports::wraparoundOffsetForPoint.
« Back to merge proposal
> CompPoint remainingVp = CompPoint (screen->vpSize ().width () - wvp.x (),
> screen->vpSize ().height () - wvp.y ());
This is an inefficient way to write:
CompPoint remainingVp (screen->vpSize ().width () - wvp.x (),
screen- >vpSize ().height () - wvp.y ());
The first way calls the constructor, then the copy constructor, then the destructor just to initialize remainingVp.
Please just use a constructor call. Please fix declarations in compiz: :viewports: :wraparoundOffs etForPoint.