Skip to content

Commit

Permalink
Remove all inheritance from std::binary_function since the STL contai…
Browse files Browse the repository at this point in the history
…ners don't need this anymore
  • Loading branch information
codereader committed Nov 29, 2019
1 parent 9a85879 commit 6469aa6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions radiant/commandsystem/CaseInsensitiveCompare.h
Expand Up @@ -9,8 +9,7 @@ namespace cmd {
/**
* Compare-functor to allow case-insensitive lookups of commands.
*/
struct CaseInsensitiveCompare :
public std::binary_function<std::string, std::string, bool>
struct CaseInsensitiveCompare
{
bool operator()(const std::string &s1, const std::string &s2) const
{
Expand Down
3 changes: 1 addition & 2 deletions radiant/entity/KeyObserverMap.h
Expand Up @@ -34,8 +34,7 @@ namespace entity
/**
* Comaparator to allow for case-insensitive search in std::multimap
*/
struct CaseInsensitiveKeyCompare :
public std::binary_function<std::string, std::string, bool>
struct CaseInsensitiveKeyCompare
{
bool operator()(const std::string &s1, const std::string &s2) const
{
Expand Down
3 changes: 1 addition & 2 deletions radiant/shaders/ShaderNameCompareFunctor.h
Expand Up @@ -7,8 +7,7 @@
/**
* allow case-insensitive binary searchs with shader definitions.
*/
struct ShaderNameCompareFunctor :
public std::binary_function<std::string, std::string, bool>
struct ShaderNameCompareFunctor
{
bool operator()(const std::string& s1, const std::string& s2) const
{
Expand Down
3 changes: 1 addition & 2 deletions radiant/ui/einspector/EntityInspector.h
Expand Up @@ -68,8 +68,7 @@ class EntityInspector :
};

private:
struct StringCompareFunctorNoCase :
public std::binary_function<std::string, std::string, bool>
struct StringCompareFunctorNoCase
{
bool operator()(const std::string& s1, const std::string& s2) const
{
Expand Down
3 changes: 1 addition & 2 deletions radiant/ui/mediabrowser/MediaBrowser.cpp
Expand Up @@ -121,8 +121,7 @@ inline wxDataViewItemAttr getItemFormat(bool isFavourite)
}

/* Callback functor for processing shader names */
struct ShaderNameCompareFunctor :
public std::binary_function<std::string, std::string, bool>
struct ShaderNameCompareFunctor
{
bool operator()(const std::string& s1, const std::string& s2) const
{
Expand Down

0 comments on commit 6469aa6

Please sign in to comment.