Qt: Fix some unused parameter warnings
Vicki Pfau vi@endrift.com
Sat, 21 Nov 2020 17:26:40 -0800
6 files changed,
8 insertions(+),
8 deletions(-)
M
src/platform/qt/AudioProcessorQt.cpp
→
src/platform/qt/AudioProcessorQt.cpp
@@ -74,7 +74,7 @@ m_audioOutput->stop();
} } -void AudioProcessorQt::setBufferSamples(int samples) { +void AudioProcessorQt::setBufferSamples(int) { } void AudioProcessorQt::inputParametersChanged() {
M
src/platform/qt/BattleChipModel.cpp
→
src/platform/qt/BattleChipModel.cpp
@@ -42,7 +42,7 @@ }
return QVariant(); } -Qt::ItemFlags BattleChipModel::flags(const QModelIndex& index) const { +Qt::ItemFlags BattleChipModel::flags(const QModelIndex&) const { return Qt::ItemIsSelectable | Qt::ItemIsDropEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemNeverHasChildren; }@@ -183,4 +183,4 @@ m_chipIdToName[id],
icon }; return chip; -}+}
M
src/platform/qt/FrameView.cpp
→
src/platform/qt/FrameView.cpp
@@ -463,7 +463,7 @@ }
m_rendered.convertFromImage(m_controller->getPixels()); } -bool FrameView::eventFilter(QObject* obj, QEvent* event) { +bool FrameView::eventFilter(QObject*, QEvent* event) { QPointF pos; switch (event->type()) { case QEvent::MouseButtonPress:
M
src/platform/qt/GBAKeyEditor.cpp
→
src/platform/qt/GBAKeyEditor.cpp
@@ -139,7 +139,7 @@ m_currentKey = m_keyOrder.begin();
(*m_currentKey)->setFocus(); } -void GBAKeyEditor::resizeEvent(QResizeEvent* event) { +void GBAKeyEditor::resizeEvent(QResizeEvent*) { setLocation(m_buttons, 0.5, 0.2); setLocation(m_keyDU, DPAD_CENTER_X, DPAD_CENTER_Y - DPAD_HEIGHT); setLocation(m_keyDD, DPAD_CENTER_X, DPAD_CENTER_Y + DPAD_HEIGHT);@@ -161,7 +161,7 @@ setLocation(m_clear, 0.5, 0.77);
} } -void GBAKeyEditor::paintEvent(QPaintEvent* event) { +void GBAKeyEditor::paintEvent(QPaintEvent*) { QPainter painter(this); painter.scale(width() / 480.0, height() / 480.0); painter.drawPicture(0, 0, m_background);
M
src/platform/qt/MapView.cpp
→
src/platform/qt/MapView.cpp
@@ -147,7 +147,7 @@ .arg(m_addressWidth == 8 ? "0x" : "")
.arg(location, m_addressWidth, 16, QChar('0'))); } -bool MapView::eventFilter(QObject* obj, QEvent* event) { +bool MapView::eventFilter(QObject*, QEvent* event) { if (event->type() != QEvent::MouseButtonPress) { return false; }
M
src/platform/qt/MemoryModel.cpp
→
src/platform/qt/MemoryModel.cpp
@@ -328,7 +328,7 @@ verticalScrollBar()->setRange(0, (m_size >> 4) + 1 - viewport()->size().height() / m_cellHeight);
boundsCheck(); } -void MemoryModel::paintEvent(QPaintEvent* event) { +void MemoryModel::paintEvent(QPaintEvent*) { QPainter painter(viewport()); QPalette palette; painter.setFont(m_font);