Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/utils/StringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,12 @@ bool HexStringToInt(const string &value, int64_t *output) {

void ToLower(string *s) {
std::transform(s->begin(), s->end(), s->begin(),
std::ptr_fun<int, int>(std::tolower));
[](int value){return std::tolower(value);});
}

void ToUpper(string *s) {
std::transform(s->begin(), s->end(), s->begin(),
std::ptr_fun<int, int>(std::toupper));
[](int value){return std::toupper(value);});
}

void CapitalizeLabel(string *s) {
Expand Down
3 changes: 1 addition & 2 deletions include/ola/ExportMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ class BaseVariable {
std::string m_name;
};

struct VariableLessThan: public std::binary_function<BaseVariable*,
BaseVariable*, bool> {
struct VariableLessThan {
bool operator()(BaseVariable *x, BaseVariable *y) {
return x->Name() < y->Name();
}
Expand Down
3 changes: 1 addition & 2 deletions include/olad/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ class AbstractPlugin {
};


struct PluginLessThan: public std::binary_function<AbstractPlugin*,
AbstractPlugin*, bool> {
struct PluginLessThan {
bool operator()(AbstractPlugin *x, AbstractPlugin *y) {
return x->Id() < y->Id();
}
Expand Down
Loading