- if (!conf.login.empty())
- params += " login=\"" + conf.login.data() + "\"";
- if (!conf.password.empty())
- params += " password=\"" + conf.password.data() + "\"";
- if (!conf.priv.empty())
- params += " priv=\"" + std::to_string(conf.priv.data().toInt()) + "\"";
+ if (conf.login)
+ params += " login=\"" + conf.login.value() + "\"";
+ if (conf.password)
+ params += " password=\"" + conf.password.value() + "\"";
+ if (conf.priv)
+ params += " priv=\"" + std::to_string(conf.priv.value().toInt()) + "\"";