feat: remove unnecessary ';'

This commit is contained in:
rankun 2020-01-19 14:00:23 +08:00
commit b1f7611a87
7 changed files with 15 additions and 13 deletions

View file

@ -131,8 +131,10 @@ void InputConvertGame::sendTouchUpEvent(int id, QPointF pos)
void InputConvertGame::sendTouchEvent(int id, QPointF pos, AndroidMotioneventAction action) void InputConvertGame::sendTouchEvent(int id, QPointF pos, AndroidMotioneventAction action)
{ {
if (0 > id || MULTI_TOUCH_MAX_NUM-1 < id) { if (0 > id || MULTI_TOUCH_MAX_NUM-1 < id) {
Q_ASSERT(0);
return; return;
} }
qDebug() << "id:" << id << " pos:" << pos << " action" << action;
ControlMsg* controlMsg = new ControlMsg(ControlMsg::CMT_INJECT_TOUCH); ControlMsg* controlMsg = new ControlMsg(ControlMsg::CMT_INJECT_TOUCH);
if (!controlMsg) { if (!controlMsg) {
return; return;
@ -417,7 +419,7 @@ void InputConvertGame::stopMouseMoveTimer()
void InputConvertGame::mouseMoveStartTouch(const QMouseEvent* from) void InputConvertGame::mouseMoveStartTouch(const QMouseEvent* from)
{ {
Q_UNUSED(from); Q_UNUSED(from)
if (!m_mouseMovePress) { if (!m_mouseMovePress) {
QPointF mouseMoveStartPos = m_keyMap.getMouseMoveMap().startPos; QPointF mouseMoveStartPos = m_keyMap.getMouseMoveMap().startPos;
//moveCursorToStart(from); //moveCursorToStart(from);

View file

@ -83,8 +83,8 @@ void InputConvertNormal::wheelEvent(const QWheelEvent *from, const QSize& frameS
void InputConvertNormal::keyEvent(const QKeyEvent *from, const QSize& frameSize, const QSize& showSize) void InputConvertNormal::keyEvent(const QKeyEvent *from, const QSize& frameSize, const QSize& showSize)
{ {
Q_UNUSED(frameSize); Q_UNUSED(frameSize)
Q_UNUSED(showSize); Q_UNUSED(showSize)
if (!from) { if (!from) {
return; return;
} }

View file

@ -97,7 +97,7 @@ void Device::initSignals()
} }
if (m_videoForm) { if (m_videoForm) {
connect(m_videoForm, &VideoForm::destroyed, this, [this](QObject *obj){ connect(m_videoForm, &VideoForm::destroyed, this, [this](QObject *obj){
Q_UNUSED(obj); Q_UNUSED(obj)
deleteLater(); deleteLater();
}); });
} }

View file

@ -23,8 +23,8 @@ Stream::~Stream()
} }
static void avLogCallback(void *avcl, int level, const char *fmt, va_list vl) { static void avLogCallback(void *avcl, int level, const char *fmt, va_list vl) {
Q_UNUSED(avcl); Q_UNUSED(avcl)
Q_UNUSED(vl); Q_UNUSED(vl)
QString localFmt = QString::fromUtf8(fmt); QString localFmt = QString::fromUtf8(fmt);
localFmt.prepend("[FFmpeg] "); localFmt.prepend("[FFmpeg] ");

View file

@ -52,7 +52,7 @@ void ToolForm::mousePressEvent(QMouseEvent *event)
void ToolForm::mouseReleaseEvent(QMouseEvent *event) void ToolForm::mouseReleaseEvent(QMouseEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
} }
void ToolForm::mouseMoveEvent(QMouseEvent *event) void ToolForm::mouseMoveEvent(QMouseEvent *event)

View file

@ -68,7 +68,7 @@ void VideoForm::onGrabCursor(bool grab)
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX) #if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
MouseTap::getInstance()->enableMouseEventTap(ui->videoWidget, grab); MouseTap::getInstance()->enableMouseEventTap(ui->videoWidget, grab);
#else #else
Q_UNUSED(grab); Q_UNUSED(grab)
#endif #endif
} }
@ -364,7 +364,7 @@ void VideoForm::keyReleaseEvent(QKeyEvent *event)
void VideoForm::paintEvent(QPaintEvent *paint) void VideoForm::paintEvent(QPaintEvent *paint)
{ {
Q_UNUSED(paint); Q_UNUSED(paint)
QStyleOption opt; QStyleOption opt;
opt.init(this); opt.init(this);
QPainter p(this); QPainter p(this);
@ -373,7 +373,7 @@ void VideoForm::paintEvent(QPaintEvent *paint)
void VideoForm::showEvent(QShowEvent *event) void VideoForm::showEvent(QShowEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
if (!isFullScreen()) { if (!isFullScreen()) {
showToolForm(); showToolForm();
} }
@ -386,12 +386,12 @@ void VideoForm::dragEnterEvent(QDragEnterEvent *event)
void VideoForm::dragMoveEvent(QDragMoveEvent *event) void VideoForm::dragMoveEvent(QDragMoveEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
} }
void VideoForm::dragLeaveEvent(QDragLeaveEvent *event) void VideoForm::dragLeaveEvent(QDragLeaveEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
} }
void VideoForm::dropEvent(QDropEvent *event) void VideoForm::dropEvent(QDropEvent *event)

View file

@ -88,7 +88,7 @@ bool MagneticWidget::eventFilter(QObject *watched, QEvent *event)
void MagneticWidget::moveEvent(QMoveEvent *event) void MagneticWidget::moveEvent(QMoveEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
if (!m_adsorbWidget) { if (!m_adsorbWidget) {
return; return;
} }