Skip to content

Commit

Permalink
Add const for broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Feb 14, 2025
1 parent df28498 commit c34e610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ksf/evt/ksEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace ksf::evt
@brief Broadcasts event to all bound callbacks.
@param args Event parameters.
*/
void broadcast(Params... params)
void broadcast(Params... params) const
{
for (const auto& [uid, function] : callbacks)
function(params...);
Expand Down

0 comments on commit c34e610

Please sign in to comment.