Skip to content

Commit aa97516

Browse files
committed
Apply clang-tidy's & clazy's suggestions.
1 parent daa3353 commit aa97516

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/lib-api-common-def.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef LIB_API_COMMON_DEF_H
22
#define LIB_API_COMMON_DEF_H
33

4+
#include <QtGlobal>
5+
46
#ifdef Q_OS_WIN
57
#define CALL_CONV __stdcall
68
#else

src/rcs-xn-gui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ void RcsXn::guiInit() {
3939
QObject::connect(form.ui.b_signal_remove, SIGNAL(released()), this,
4040
SLOT(b_signal_remove_handle()));
4141

42-
QObject::connect(form.ui.tw_xn_log, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)), this,
43-
SLOT(tw_log_double_clicked(QTreeWidgetItem *, int)));
44-
QObject::connect(form.ui.tw_signals, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)), this,
45-
SLOT(tw_signals_dbl_click(QTreeWidgetItem *, int)));
42+
QObject::connect(form.ui.tw_xn_log, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this,
43+
SLOT(tw_log_double_clicked(QTreeWidgetItem*,int)));
44+
QObject::connect(form.ui.tw_signals, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this,
45+
SLOT(tw_signals_dbl_click(QTreeWidgetItem*,int)));
4646
QObject::connect(form.ui.tw_signals, SIGNAL(itemSelectionChanged()), this,
4747
SLOT(tw_signals_selection_changed()));
4848

src/rcs-xn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ RcsXn rx;
1616
RcsXn::RcsXn(QObject *parent) : QObject(parent), f_signal_edit(sigTemplates) {
1717
// XN events
1818
QObject::connect(&xn, SIGNAL(onError(QString)), this, SLOT(xnOnError(QString)));
19-
QObject::connect(&xn, SIGNAL(onLog(QString, Xn::LogLevel)), this,
20-
SLOT(xnOnLog(QString, Xn::LogLevel)));
19+
QObject::connect(&xn, SIGNAL(onLog(QString,Xn::LogLevel)), this,
20+
SLOT(xnOnLog(QString,Xn::LogLevel)));
2121
QObject::connect(&xn, SIGNAL(onConnect()), this, SLOT(xnOnConnect()));
2222
QObject::connect(&xn, SIGNAL(onDisconnect()), this, SLOT(xnOnDisconnect()));
2323
QObject::connect(&xn, SIGNAL(onTrkStatusChanged(Xn::TrkStatus)), this,
2424
SLOT(xnOnTrkStatusChanged(Xn::TrkStatus)));
2525
QObject::connect(
26-
&xn, SIGNAL(onAccInputChanged(uint8_t, bool, bool, Xn::FeedbackType, Xn::AccInputsState)),
27-
this, SLOT(xnOnAccInputChanged(uint8_t, bool, bool, Xn::FeedbackType, Xn::AccInputsState))
26+
&xn, SIGNAL(onAccInputChanged(uint8_t,bool,bool,Xn::FeedbackType,Xn::AccInputsState)),
27+
this, SLOT(xnOnAccInputChanged(uint8_t,bool,bool,Xn::FeedbackType,Xn::AccInputsState))
2828
);
2929
QObject::connect(&m_acc_reset_timer, SIGNAL(timeout()), this, SLOT(m_acc_reset_timer_tick()));
3030
m_acc_reset_timer.setInterval(ACC_RESET_TIMER_PERIOD);

0 commit comments

Comments
 (0)