- std::string param(ToLower(i->param));
- if (param == "server")
- server = *(i->value.begin());
- else if (param == "database")
- database = *(i->value.begin());
- else if (param == "user")
- user = *(i->value.begin());
- else if (param == "password")
- password = *(i->value.begin());
- else if (param == "retries")
- if (str2x(*(i->value.begin()), retries))
+ if (i->value.empty())
+ continue;
+ std::string s = ToLower(i->param);
+ if (s == "server")
+ {
+ server = i->value.front();
+ }
+ if (s == "database")
+ {
+ database = i->value.front();
+ }
+ if (s == "user")
+ {
+ user = i->value.front();
+ }
+ if (s == "password")
+ {
+ password = i->value.front();
+ }
+ if (s == "retries")
+ {
+ if (str2x(i->value.front(), retries))