Skip to content

Commit 480264f

Browse files
authored
perf: Use string_view in AccountInfo (#2951)
1 parent 584d2bb commit 480264f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/handlers/AccountInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ tag_invoke(boost::json::value_from_tag, boost::json::value& jv, AccountInfoHandl
177177
auto const pseudoFields = ripple::getPseudoAccountFields();
178178
for (auto const& pseudoField : pseudoFields) {
179179
if (output.accountData.isFieldPresent(*pseudoField)) {
180-
std::string name = pseudoField->fieldName;
180+
std::string_view name = pseudoField->fieldName;
181181
if (name.ends_with("ID")) {
182182
// Remove the ID suffix from the field name.
183183
name = name.substr(0, name.size() - 2);

0 commit comments

Comments
 (0)