Skip to content

Commit e699352

Browse files
committed
Copilot review feedback
1 parent b117ecc commit e699352

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/xrpl/basics/Slice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <limits>
1212
#include <stdexcept>
1313
#include <string>
14+
#include <string_view>
1415
#include <type_traits>
1516
#include <vector>
1617

src/libxrpl/shamap/SHAMapSync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ SHAMap::addRootNode(
511511
if (backed_)
512512
canonicalize(hash, rootNode);
513513

514-
root_ = rootNode;
514+
root_ = std::move(rootNode);
515515

516516
if (root_->isLeaf())
517517
clearSynching();

0 commit comments

Comments
 (0)