diff --git a/src/permission/fs_permission.h b/src/permission/fs_permission.h index 244e95727ad487..80374a08c75d26 100644 --- a/src/permission/fs_permission.h +++ b/src/permission/fs_permission.h @@ -31,7 +31,7 @@ class FSPermission final : public PermissionBase { Node() : wildcard_child(nullptr), is_leaf(false) {} - Node* CreateChild(std::string prefix) { + Node* CreateChild(const std::string& prefix) { if (prefix.empty() && !is_leaf) { is_leaf = true; return this;