We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b4886b commit a3fd2c5Copy full SHA for a3fd2c5
hdspmixer/src/HDSPMixerWindow.cxx
@@ -274,15 +274,15 @@ static int handler_cb(int event)
274
{
275
HDSPMixerWindow *w = NULL;
276
Fl_Window *fl_win = Fl::first_window();
277
- while (1) {
278
- if (fl_win->label()) {
279
- if (strncmp("HDSPMixer", fl_win->label(), 9) == 0) {
280
- w = (HDSPMixerWindow *)fl_win;
281
- break;
+ while (fl_win) {
+ if (fl_win->label()) {
+ if (strncmp("HDSPMixer", fl_win->label(), 9) == 0) {
+ w = (HDSPMixerWindow *)fl_win;
+ break;
282
+ }
283
}
284
+ fl_win = Fl::next_window(fl_win);
285
- if ((fl_win = Fl::next_window(fl_win))) return 0;
- }
286
if (!w) return 0;
287
int key = Fl::event_key();
288
switch (event) {
0 commit comments