GrandOrgue / grandorgue

GrandOrgue software
Other
148 stars 39 forks source link

Enchanced code style of GOEventHandlerList #1925

Closed oleg68 closed 1 day ago

oleg68 commented 1 week ago

This is the first PR related to #1816

Earlier GOEventHandlerList.cpp contained a lot of copy-pasted code, so adding a new method requires to copy-paste more.

This PR reorganises this class so all the reusable code is in the methods of the new inner class UPVector. Now most of methods only forward to a corresponding method of UPVector.

It is just refactoring. No GO behavior should be changed.

oleg68 commented 4 days ago

@rousseldenis could you approve this PR?