Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI TrackWidget::TrackWidget constructor use of virtual function #573

Closed
tsteven4 opened this issue May 26, 2020 · 2 comments
Closed

GUI TrackWidget::TrackWidget constructor use of virtual function #573

tsteven4 opened this issue May 26, 2020 · 2 comments

Comments

@tsteven4
Copy link
Collaborator

clang-tidy-9 finds

filterwidgets.cc:96:3: warning: Call to virtual function during construction [clang-analyzer-optin.cplusplus.VirtualCall]
  checkChecks();
  ^
filterwidgets.cc:96:3: note: This constructor of an object of type 'TrackWidget' has not returned when the virtual method was called
filterwidgets.cc:96:3: note: Call to virtual function during construction
1 warning generated.

clang-tidy-10 puts it a little differently:

filterwidgets.cc:96:3: warning: Call to virtual method 'TrackWidget::checkChecks' during construction bypasses virtual dispatch [clang-analyzer-optin.cplusplus.VirtualCall]
  checkChecks();
  ^
filterwidgets.cc:96:3: note: Call to virtual method 'TrackWidget::checkChecks' during construction bypasses virtual dispatch
@tsteven4
Copy link
Collaborator Author

@tsteven4
Copy link
Collaborator Author

This was fixed by #1387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant