shared_ptr<subwindows::SubWindowBase> v;
QMainWindow *main_window = nullptr;
- for (auto entry : session_windows_)
+ for (auto& entry : session_windows_)
if (entry.first.get() == &session)
main_window = entry.second;
QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);
QAbstractButton *close_btn =
- dock->findChildren<QAbstractButton*>
+ dock->findChildren<QAbstractButton*> // clazy:exclude=detaching-temporary
("qt_dockwidget_closebutton").front();
connect(close_btn, SIGNAL(clicked(bool)),
{
#ifdef ENABLE_DECODE
// Close dock widget if it's already showing and return
- for (auto entry : sub_windows_) {
+ for (auto& entry : sub_windows_) {
QDockWidget* dock = entry.first;
shared_ptr<subwindows::SubWindowBase> decoder_selector =
dynamic_pointer_cast<subwindows::decoder_selector::SubWindow>(entry.second);
}
// We get a pointer and need a reference
- for (shared_ptr<Session> s : sessions_)
+ for (shared_ptr<Session>& s : sessions_)
if (s.get() == session)
add_subwindow(subwindows::SubWindowTypeDecoderSelector, *s);
#endif
namespace decoder_selector {
const char *initial_notice =
- QT_TRANSLATE_NOOP("pv::subwindows::decoder_selector::SubWindow", "Select a decoder to see its description here.");
+ QT_TRANSLATE_NOOP("pv::subwindows::decoder_selector::SubWindow",
+ "Select a decoder to see its description here."); // clazy:exclude=non-pod-global-static
const int min_width_margin = 75;
void SubWindowBase::clear_signalbases()
{
- for (shared_ptr<data::SignalBase> signalbase : signalbases_) {
+ for (const shared_ptr<data::SignalBase>& signalbase : signalbases_) {
disconnect(signalbase.get(), SIGNAL(samples_cleared()),
this, SLOT(on_data_updated()));
disconnect(signalbase.get(), SIGNAL(samples_added(uint64_t, uint64_t, uint64_t)),
class WellArray : public QWidget
{
Q_OBJECT
- Q_PROPERTY(int selectedColumn READ selectedColumn) // clazy-exclude:qproperty-without-notify
- Q_PROPERTY(int selectedRow READ selectedRow) // clazy-exclude:qproperty-without-notify
+ Q_PROPERTY(int selectedColumn READ selectedColumn) // clazy:exclude=qproperty-without-notify
+ Q_PROPERTY(int selectedRow READ selectedRow) // clazy:exclude=qproperty-without-notify
public:
WellArray(int rows, int cols, QWidget* parent = nullptr);