Skip to content

Commit aeb87b3

Browse files
committed
RVW: Readability update as requested, new macros
1 parent 7427670 commit aeb87b3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

calculator_simple/src/app_window.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
#include <iostream>
1414

15+
#define PROPAGATE_SIG true
16+
#define DO_NOT_PROPAGATE_SIG false
17+
1518

1619
/**
1720
* @brief AppWindow Constructor.
@@ -183,15 +186,15 @@ void AppWindow::handle_display_update()
183186
* @param[in] scroll_type The type of "scrolling" event that triggered this callback.
184187
* @param[in] radix_new The new value after the "scrolling" event, which will be the new radix value.
185188
*
186-
* @returns
189+
* @returns (boolean) Whether this signal should propagate further to other handlers after this.
187190
*/
188191
bool AppWindow::handle_radix_change(
189192
Gtk::ScrollType const & scroll_type
190193
, double const & radix_new
191194
)
192195
{
193196
short int count = 0;
194-
197+
195198
for (auto const & btn_ptr : btn_arr)
196199
{
197200
btn_ptr->set_sensitive(
@@ -200,7 +203,7 @@ bool AppWindow::handle_radix_change(
200203
count += 1;
201204
}
202205

203-
return (false);
206+
return (DO_NOT_PROPAGATE_SIG);
204207
}
205208

206209

0 commit comments

Comments
 (0)