mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
IniFile: Mark getter functions as const
This commit is contained in:
@ -38,8 +38,6 @@ public:
|
||||
void Set(const std::string& key, const std::string& newValue);
|
||||
void Set(const std::string& key, const std::string& newValue, const std::string& defaultValue);
|
||||
|
||||
bool Get(const std::string& key, std::string* value, const std::string& defaultValue = NULL_STRING);
|
||||
|
||||
void Set(const std::string& key, u32 newValue)
|
||||
{
|
||||
Set(key, StringFromFormat("0x%08x", newValue));
|
||||
@ -76,12 +74,13 @@ public:
|
||||
|
||||
void Set(const std::string& key, const std::vector<std::string>& newValues);
|
||||
|
||||
bool Get(const std::string& key, int* value, int defaultValue = 0);
|
||||
bool Get(const std::string& key, u32* value, u32 defaultValue = 0);
|
||||
bool Get(const std::string& key, bool* value, bool defaultValue = false);
|
||||
bool Get(const std::string& key, float* value, float defaultValue = false);
|
||||
bool Get(const std::string& key, double* value, double defaultValue = false);
|
||||
bool Get(const std::string& key, std::vector<std::string>* values);
|
||||
bool Get(const std::string& key, std::string* value, const std::string& defaultValue = NULL_STRING) const;
|
||||
bool Get(const std::string& key, int* value, int defaultValue = 0) const;
|
||||
bool Get(const std::string& key, u32* value, u32 defaultValue = 0) const;
|
||||
bool Get(const std::string& key, bool* value, bool defaultValue = false) const;
|
||||
bool Get(const std::string& key, float* value, float defaultValue = 0.0f) const;
|
||||
bool Get(const std::string& key, double* value, double defaultValue = 0.0) const;
|
||||
bool Get(const std::string& key, std::vector<std::string>* values) const;
|
||||
|
||||
bool operator < (const Section& other) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user