Skip to content

Commit

Permalink
Const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
daltomi committed Jan 14, 2023
1 parent 904bed5 commit 728d531
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void QuitCb(UNUSED Fl_Widget* w, UNUSED void* data);
void SelectCb(Fl_Widget* w, UNUSED void* data);
void CommandSrvCb(Fl_Widget* w, UNUSED void* data);
void CommandLogCb(Fl_Widget* w, void* data);
void Command(Fl_Button* btnId, char const* const service);
void Command(Fl_Button const* const btnId, char const* const service);
void LoadUnloadCb(Fl_Widget* w, UNUSED void* data);
void AddServicesCb(UNUSED Fl_Widget* w, void* data);
void TimerCb(UNUSED void* data);
Expand Down Expand Up @@ -570,7 +570,7 @@ char* ExtractServiceNameFromPath(char const* const service)

void CommandSrvCb(Fl_Widget* w, UNUSED void* data)
{
Fl_Button* btnId = (Fl_Button*)w;
Fl_Button const* const btnId = (Fl_Button*)w;

ASSERT_DBG(btnId != NULL);

Expand All @@ -587,7 +587,7 @@ void CommandSrvCb(Fl_Widget* w, UNUSED void* data)

void CommandLogCb(Fl_Widget* w, void* data)
{
Fl_Button* btnId = (Fl_Button*)w;
Fl_Button const* const btnId = (Fl_Button*)w;

ASSERT_DBG(btnId != NULL);

Expand All @@ -609,7 +609,7 @@ void CommandLogCb(Fl_Widget* w, void* data)
}


void Command(Fl_Button* btnId, char const* const service)
void Command(Fl_Button const* const btnId, char const* const service)
{
if (btnId == btn[RUN] || btnId == btn[RUN_LOG])
{
Expand Down

0 comments on commit 728d531

Please sign in to comment.