Skip to content

Commit 7a661d7

Browse files
mhdawsonUlisesGascon
authored andcommitted
permission: address coverity warning
The latest version of coverity has suggestions on how to improve formance. Address one of these suggestions. Signed-off-by: Michael Dawson <[email protected]> PR-URL: #50215 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent 64bf2fd commit 7a661d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/permission/fs_permission.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class FSPermission final : public PermissionBase{
3131

3232
Node() : wildcard_child(nullptr), is_leaf(false){}
3333

34-
Node* CreateChild(std::string prefix){
34+
Node* CreateChild(conststd::string& prefix){
3535
if (prefix.empty() && !is_leaf){
3636
is_leaf = true;
3737
returnthis;

0 commit comments

Comments
(0)