mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core, DolphinQt, UICommon: Fix all cases of -Wrange-loop-construct in gcc 11
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QPixmap>
|
||||
#include <string_view>
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
@ -30,16 +31,16 @@ public:
|
||||
|
||||
static QPixmap GetMisc(MiscID id);
|
||||
|
||||
static QIcon GetScaledIcon(const std::string& name);
|
||||
static QIcon GetScaledThemeIcon(const std::string& name);
|
||||
static QIcon GetScaledIcon(std::string_view name);
|
||||
static QIcon GetScaledThemeIcon(std::string_view name);
|
||||
static QIcon GetAppIcon();
|
||||
|
||||
static QPixmap GetScaledPixmap(const std::string& name);
|
||||
static QPixmap GetScaledPixmap(std::string_view name);
|
||||
|
||||
private:
|
||||
Resources() {}
|
||||
static QIcon GetIcon(const QString& name, const QString& dir);
|
||||
static QPixmap GetPixmap(const QString& name, const QString& dir);
|
||||
static QIcon GetIcon(std::string_view name, const QString& dir);
|
||||
static QPixmap GetPixmap(std::string_view name, const QString& dir);
|
||||
|
||||
static QList<QPixmap> m_platforms;
|
||||
static QList<QPixmap> m_countries;
|
||||
|
Reference in New Issue
Block a user