mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Core, DolphinQt, UICommon: Fix all cases of -Wrange-loop-construct in gcc 11
This commit is contained in:
parent
db02b50d2e
commit
ab252aedfa
5 changed files with 25 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue