mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove PluginMetadata::operator== and != for std::string
This commit is contained in:
@@ -250,21 +250,6 @@ public:
|
||||
* otherwise.
|
||||
*/
|
||||
LOOT_API bool operator!=(const PluginMetadata& rhs) const;
|
||||
|
||||
/**
|
||||
* Check if object's name value is equal to the given string.
|
||||
* @returns True if the plugin name is case-insensitively equal to the given
|
||||
* string, false otherwise.
|
||||
*/
|
||||
LOOT_API bool operator==(const std::string& rhs) const;
|
||||
|
||||
/**
|
||||
* Check if object's name value is not equal to the given string.
|
||||
* @returns True if the plugin name is not case-insensitively equal to the
|
||||
* given string, false otherwise.
|
||||
*/
|
||||
LOOT_API bool operator!=(const std::string& rhs) const;
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
std::optional<std::string> group_;
|
||||
|
||||
@@ -215,12 +215,4 @@ bool PluginMetadata::operator==(const PluginMetadata& rhs) const {
|
||||
bool PluginMetadata::operator!=(const PluginMetadata& rhs) const {
|
||||
return !(*this == rhs);
|
||||
}
|
||||
|
||||
bool PluginMetadata::operator==(const std::string& rhs) const {
|
||||
return *this == PluginMetadata(rhs);
|
||||
}
|
||||
|
||||
bool PluginMetadata::operator!=(const std::string& rhs) const {
|
||||
return !(*this == rhs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user