diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-05-24 09:10:18 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2020-06-02 01:31:26 +0200 |
commit | 224ef08c7f6c9cf2a88fbf156225f04cac2eabeb (patch) | |
tree | 27e4cfa9f307040041bffd9e99a90347f16f8620 /tools/Config.cpp | |
parent | 642c7598a7e5c937c08d03323c299b83e84e1b5e (diff) |
wsd: single-char string literals -> char
More readable and typically more efficient.
Change-Id: I9bd5bfc91f4ac255bb8ae0987708fb8b56b398f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95285
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'tools/Config.cpp')
-rw-r--r-- | tools/Config.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/Config.cpp b/tools/Config.cpp index 86339915a..9c4093910 100644 --- a/tools/Config.cpp +++ b/tools/Config.cpp @@ -289,8 +289,8 @@ int Config::main(const std::vector<std::string>& args) const std::string passwordHash = stream.str(); std::stringstream pwdConfigValue("pbkdf2.sha512.", std::ios_base::in | std::ios_base::out | std::ios_base::ate); - pwdConfigValue << std::to_string(_adminConfig.getPwdIterations()) << "."; - pwdConfigValue << saltHash << "." << passwordHash; + pwdConfigValue << std::to_string(_adminConfig.getPwdIterations()) << '.'; + pwdConfigValue << saltHash << '.' << passwordHash; _loolConfig.setString("admin_console.username", adminUser); _loolConfig.setString("admin_console.secure_password[@desc]", "Salt and password hash combination generated using PBKDF2 with SHA512 digest."); @@ -348,8 +348,8 @@ int Config::main(const std::vector<std::string>& args) if (_loolConfig.has(args[1])) { const std::string val = _loolConfig.getString(args[1]); - std::cout << "Previous value found in config file: \"" << val << "\"" << std::endl; - std::cout << "Changing value to: \"" << args[2] << "\"" << std::endl; + std::cout << "Previous value found in config file: \"" << val << '"' << std::endl; + std::cout << "Changing value to: \"" << args[2] << '"' << std::endl; _loolConfig.setString(args[1], args[2]); changed = true; } @@ -388,7 +388,7 @@ int Config::main(const std::vector<std::string>& args) } else { - std::cerr << "No such command, \"" << args[0] << "\"" << std::endl; + std::cerr << "No such command, \"" << args[0] << '"' << std::endl; displayHelp(); } |