citra-emu
/
citra
Archived
1
0
Fork 0

Solve some unreferenced parameter warnings

(C4100: unreferenced formal parameter)
This commit is contained in:
Vitor Kiguchi 2020-07-24 01:35:52 -03:00
parent d87fee05a9
commit ecb2541a93
10 changed files with 22 additions and 3 deletions

View File

@ -168,10 +168,10 @@ void ConfigureMotionTouch::UpdateUiDisplay() {
void ConfigureMotionTouch::ConnectEvents() { void ConfigureMotionTouch::ConnectEvents() {
connect(ui->motion_provider, connect(ui->motion_provider,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
[this](int index) { UpdateUiDisplay(); }); [this](int index) { Q_UNUSED(index); UpdateUiDisplay(); });
connect(ui->touch_provider, connect(ui->touch_provider,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
[this](int index) { UpdateUiDisplay(); }); [this](int index) { Q_UNUSED(index); UpdateUiDisplay(); });
connect(ui->udp_test, &QPushButton::clicked, this, &ConfigureMotionTouch::OnCemuhookUDPTest); connect(ui->udp_test, &QPushButton::clicked, this, &ConfigureMotionTouch::OnCemuhookUDPTest);
connect(ui->touch_calibration_config, &QPushButton::clicked, this, connect(ui->touch_calibration_config, &QPushButton::clicked, this,
&ConfigureMotionTouch::OnConfigureTouchCalibration); &ConfigureMotionTouch::OnConfigureTouchCalibration);

View File

@ -327,6 +327,7 @@ void ConfigureTouchFromButton::OnBindingChanged(QStandardItem* item) {
} }
void ConfigureTouchFromButton::OnBindingDeleted(const QModelIndex& parent, int first, int last) { void ConfigureTouchFromButton::OnBindingDeleted(const QModelIndex& parent, int first, int last) {
Q_UNUSED(parent);
for (int i = first; i <= last; ++i) { for (int i = first; i <= last; ++i) {
auto ix = binding_list_model->index(i, 0); auto ix = binding_list_model->index(i, 0);
if (!ix.isValid()) { if (!ix.isValid()) {
@ -514,6 +515,7 @@ void TouchScreenPreview::mouseMoveEvent(QMouseEvent* event) {
} }
void TouchScreenPreview::leaveEvent(QEvent* event) { void TouchScreenPreview::leaveEvent(QEvent* event) {
Q_UNUSED(event);
if (coord_label) { if (coord_label) {
coord_label->clear(); coord_label->clear();
} }

View File

@ -15,6 +15,7 @@ GPUCommandStreamItemModel::GPUCommandStreamItemModel(QObject* parent)
} }
int GPUCommandStreamItemModel::rowCount(const QModelIndex& parent) const { int GPUCommandStreamItemModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return command_count; return command_count;
} }

View File

@ -17,10 +17,12 @@ BreakPointModel::BreakPointModel(std::shared_ptr<Pica::DebugContext> debug_conte
active_breakpoint(debug_context->active_breakpoint) {} active_breakpoint(debug_context->active_breakpoint) {}
int BreakPointModel::columnCount(const QModelIndex& parent) const { int BreakPointModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return 1; return 1;
} }
int BreakPointModel::rowCount(const QModelIndex& parent) const { int BreakPointModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return static_cast<int>(Pica::DebugContext::Event::NumEvents); return static_cast<int>(Pica::DebugContext::Event::NumEvents);
} }

View File

@ -58,10 +58,12 @@ public:
GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(parent) {} GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(parent) {}
int GPUCommandListModel::rowCount(const QModelIndex& parent) const { int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return static_cast<int>(pica_trace.writes.size()); return static_cast<int>(pica_trace.writes.size());
} }
int GPUCommandListModel::columnCount(const QModelIndex& parent) const { int GPUCommandListModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return 4; return 4;
} }
@ -90,6 +92,7 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const {
} }
QVariant GPUCommandListModel::headerData(int section, Qt::Orientation orientation, int role) const { QVariant GPUCommandListModel::headerData(int section, Qt::Orientation orientation, int role) const {
Q_UNUSED(orientation);
switch (role) { switch (role) {
case Qt::DisplayRole: { case Qt::DisplayRole: {
switch (section) { switch (section) {

View File

@ -30,15 +30,18 @@ GraphicsVertexShaderModel::GraphicsVertexShaderModel(GraphicsVertexShaderWidget*
: QAbstractTableModel(parent), par(parent) {} : QAbstractTableModel(parent), par(parent) {}
int GraphicsVertexShaderModel::columnCount(const QModelIndex& parent) const { int GraphicsVertexShaderModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return 3; return 3;
} }
int GraphicsVertexShaderModel::rowCount(const QModelIndex& parent) const { int GraphicsVertexShaderModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return static_cast<int>(par->info.code.size()); return static_cast<int>(par->info.code.size());
} }
QVariant GraphicsVertexShaderModel::headerData(int section, Qt::Orientation orientation, QVariant GraphicsVertexShaderModel::headerData(int section, Qt::Orientation orientation,
int role) const { int role) const {
Q_UNUSED(orientation);
switch (role) { switch (role) {
case Qt::DisplayRole: { case Qt::DisplayRole: {
if (section == 0) { if (section == 0) {

View File

@ -113,6 +113,7 @@ MicroProfileWidget::MicroProfileWidget(QWidget* parent) : QWidget(parent) {
} }
void MicroProfileWidget::paintEvent(QPaintEvent* ev) { void MicroProfileWidget::paintEvent(QPaintEvent* ev) {
Q_UNUSED(ev);
QPainter painter(this); QPainter painter(this);
// The units used by Microprofile for drawing are based in pixels on a 96 dpi display. // The units used by Microprofile for drawing are based in pixels on a 96 dpi display.

View File

@ -755,5 +755,6 @@ void GameListPlaceholder::onUpdateThemedIcons() {
} }
void GameListPlaceholder::mouseDoubleClickEvent(QMouseEvent* event) { void GameListPlaceholder::mouseDoubleClickEvent(QMouseEvent* event) {
Q_UNUSED(event);
emit GameListPlaceholder::AddDirectory(); emit GameListPlaceholder::AddDirectory();
} }

View File

@ -2097,14 +2097,17 @@ void GMainWindow::OnMouseActivity() {
} }
void GMainWindow::mouseMoveEvent(QMouseEvent* event) { void GMainWindow::mouseMoveEvent(QMouseEvent* event) {
Q_UNUSED(event);
OnMouseActivity(); OnMouseActivity();
} }
void GMainWindow::mousePressEvent(QMouseEvent* event) { void GMainWindow::mousePressEvent(QMouseEvent* event) {
Q_UNUSED(event);
OnMouseActivity(); OnMouseActivity();
} }
void GMainWindow::mouseReleaseEvent(QMouseEvent* event) { void GMainWindow::mouseReleaseEvent(QMouseEvent* event) {
Q_UNUSED(event);
OnMouseActivity(); OnMouseActivity();
} }

View File

@ -4,8 +4,11 @@
#include "citra_qt/util/clickable_label.h" #include "citra_qt/util/clickable_label.h"
ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f) : QLabel(parent) {} ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f) : QLabel(parent) {
Q_UNUSED(f);
}
void ClickableLabel::mouseReleaseEvent(QMouseEvent* event) { void ClickableLabel::mouseReleaseEvent(QMouseEvent* event) {
Q_UNUSED(event);
emit clicked(); emit clicked();
} }