From: Maxim Mamontov Date: Sat, 10 Jan 2015 20:06:16 +0000 (+0200) Subject: Use common case-conversion functions. X-Git-Tag: 2.409~222 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/57de0355b9a289dc3a2f219f0ea32145bdd7e69b Use common case-conversion functions. --- diff --git a/projects/stargazer/plugins/store/firebird/firebird_store.cpp b/projects/stargazer/plugins/store/firebird/firebird_store.cpp index 3c4f32ad..81160114 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store.cpp @@ -33,9 +33,6 @@ #include #include -#include - -#include namespace { @@ -81,9 +78,7 @@ std::string s; for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i) { - s = i->param; - - std::transform(s.begin(), s.end(), s.begin(), ::tolower); + s = ToLower(i->param); if (s == "server") db_server = *(i->value.begin()); diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp index 3a1d7272..80431c0d 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp @@ -40,7 +40,6 @@ #include #include -#include #include @@ -97,8 +96,7 @@ std::string s; for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i) { - s = i->param; - std::transform(s.begin(), s.end(), s.begin(), ToLower()); + s = ToLower(i->param); if (s == "server") { server = *(i->value.begin());