File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1212
1313#include < folly/SocketAddress.h>
1414
15+ #include < utility>
16+
1517namespace proxygen {
1618
1719struct AcceptorAddress {
1820 enum class AcceptorType { TCP, UDP };
1921
2022 AcceptorAddress () = delete ;
2123 AcceptorAddress (folly::SocketAddress address, AcceptorType protocol)
22- : address(address), protocol(protocol) {
24+ : address(std::move( address) ), protocol(protocol) {
2325 }
2426
2527 folly::SocketAddress address;
Original file line number Diff line number Diff line change 88
99#include < proxygen/lib/utils/Exception.h>
1010
11+ #include < utility>
12+
1113namespace proxygen {
1214
13- Exception::Exception (std::string const & msg) : msg_(msg), code_(0 ) {
15+ Exception::Exception (std::string msg) : msg_(std::move( msg) ), code_(0 ) {
1416}
1517
1618Exception::Exception (const char * msg) : msg_(msg), code_(0 ) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace proxygen {
2424 */
2525class Exception : public std ::exception {
2626 public:
27- explicit Exception (std::string const & msg);
27+ explicit Exception (std::string msg);
2828 explicit Exception (const char * msg);
2929 Exception (const Exception&);
3030 Exception (Exception& other) : Exception(std::as_const(other)) {
You can’t perform that action at this time.
0 commit comments