mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 21:48:08 -05:00
Fix a few warnings
- configure_input_player_widget.cpp: always better to use `const auto &` whenever possible - profiler.cpp: `ev->pos()` is deprecated, replace with `ev->position()`, which returns floats, thus the addition of `.toPoint()` (same as what's happening in `pos()`) - game_list.cpp: `QString::SplitBehavior` is deprecate, use `Qt::` namespace instead
This commit is contained in:
@ -1837,7 +1837,7 @@ void PlayerControlPreview::DrawLeftBody(QPainter& p, const QPointF center) {
|
||||
const float led_size = 5.0f;
|
||||
const QPointF led_position = sideview_center + QPointF(0, -36);
|
||||
int led_count = 0;
|
||||
for (const auto color : led_color) {
|
||||
for (const auto& color : led_color) {
|
||||
p.setBrush(color);
|
||||
DrawRectangle(p, led_position + QPointF(0, 12 * led_count++), led_size, led_size);
|
||||
}
|
||||
@ -1933,7 +1933,7 @@ void PlayerControlPreview::DrawRightBody(QPainter& p, const QPointF center) {
|
||||
const float led_size = 5.0f;
|
||||
const QPointF led_position = sideview_center + QPointF(0, -36);
|
||||
int led_count = 0;
|
||||
for (const auto color : led_color) {
|
||||
for (const auto& color : led_color) {
|
||||
p.setBrush(color);
|
||||
DrawRectangle(p, led_position + QPointF(0, 12 * led_count++), led_size, led_size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user