From 57de0355b9a289dc3a2f219f0ea32145bdd7e69b Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 10 Jan 2015 22:06:16 +0200 Subject: [PATCH] Use common case-conversion functions. --- .../stargazer/plugins/store/firebird/firebird_store.cpp | 7 +------ .../plugins/store/postgresql/postgresql_store.cpp | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) 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()); -- 2.44.2