common/param_package: Apply nodiscard where applicable
This commit is contained in:
@@ -24,14 +24,14 @@ public:
|
|||||||
ParamPackage& operator=(const ParamPackage& other) = default;
|
ParamPackage& operator=(const ParamPackage& other) = default;
|
||||||
ParamPackage& operator=(ParamPackage&& other) = default;
|
ParamPackage& operator=(ParamPackage&& other) = default;
|
||||||
|
|
||||||
std::string Serialize() const;
|
[[nodiscard]] std::string Serialize() const;
|
||||||
std::string Get(const std::string& key, const std::string& default_value) const;
|
[[nodiscard]] std::string Get(const std::string& key, const std::string& default_value) const;
|
||||||
int Get(const std::string& key, int default_value) const;
|
[[nodiscard]] int Get(const std::string& key, int default_value) const;
|
||||||
float Get(const std::string& key, float default_value) const;
|
[[nodiscard]] float Get(const std::string& key, float default_value) const;
|
||||||
void Set(const std::string& key, std::string value);
|
void Set(const std::string& key, std::string value);
|
||||||
void Set(const std::string& key, int value);
|
void Set(const std::string& key, int value);
|
||||||
void Set(const std::string& key, float value);
|
void Set(const std::string& key, float value);
|
||||||
bool Has(const std::string& key) const;
|
[[nodiscard]] bool Has(const std::string& key) const;
|
||||||
void Erase(const std::string& key);
|
void Erase(const std::string& key);
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user