Skip to content

Commit bec6aba

Browse files
Sergey Komarovjengelh
authored andcommitted
http: resolve cov-scan warning COPY_INSTEAD_OF_MOVE
CID 1590459: (#1 of 1): Variable copied when it could be moved (COPY_INSTEAD_OF_MOVE) copy_constructor_call: node is copied and then passed-by-reference as parameter to STL insertion function std::vector<FASTCGI_NODE, std::allocator<FASTCGI_NODE> >::push_back(std::vector<FASTCGI_NODE, std::allocator<FASTCGI_NODE> >::value_type const &), when it could be moved instead Fixes: gromox-2.29-2-gdb53d5689
1 parent 5231f77 commit bec6aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/http/fastcgi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int mod_fastcgi_defaults()
165165
node.path = "/dav";
166166
node.dir = DATADIR "/grommunio-dav";
167167
node.sock_path = FPMSOCKDIR "/php-grommunio-dav-fpm.sock";
168-
g_fastcgi_list.push_back(node);
168+
g_fastcgi_list.push_back(std::move(node));
169169
return 0;
170170
}
171171

0 commit comments

Comments
 (0)