Skip to content

Commit

Permalink
GH-1279 Use string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jul 17, 2023
1 parent 73e6abe commit 81a3a77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions programs/nodeos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ using namespace eosio;
namespace detail {

void log_non_default_options(const std::vector<bpo::basic_option<char>>& options) {
using namespace std::string_literals;
string result;
for (const auto& op : options) {
bool mask = false;
if (op.string_key == "signature-provider"
|| op.string_key == "peer-private-key"
|| op.string_key == "p2p-auto-bp-peer") {
if (op.string_key == "signature-provider"s
|| op.string_key == "peer-private-key"s
|| op.string_key == "p2p-auto-bp-peer"s) {
mask = true;
}
std::string v;
Expand Down

0 comments on commit 81a3a77

Please sign in to comment.