From 011e19815b201acf19b5a4208ec6acd41ca995f3 Mon Sep 17 00:00:00 2001 From: claiff Date: Mon, 19 Sep 2022 22:48:25 +0300 Subject: fix problem with boolean settings --- src/converter/file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/converter/file.cpp') diff --git a/src/converter/file.cpp b/src/converter/file.cpp index 203cca9..a33381f 100644 --- a/src/converter/file.cpp +++ b/src/converter/file.cpp @@ -18,14 +18,14 @@ namespace smtp::converter void File::ApplyAuth( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const { - static const std::string FIELD = "need_auth"; + static const std::string FIELD = "is_need_auth"; ApplyBool(from, FIELD, result.is_need_auth); } void File::ApplySsl( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const { - static const std::string FIELD = "need_ssl"; + static const std::string FIELD = "is_need_ssl"; ApplyBool(from, FIELD, result.is_need_ssl); } @@ -44,7 +44,7 @@ namespace smtp::converter { return; } - field = ( find->second == TRUE_AS_STRING ) ? true : false; + field = (find->second == TRUE_AS_STRING); } void File::ApplyUsername( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const -- cgit v1.2.3