Simplifications and clean-ups
[invirt/third/libt4.git] / rpc / connection.cc
index c2635ef..d118539 100644 (file)
@@ -9,7 +9,7 @@
 connection_delegate::~connection_delegate() {}
 
 connection::connection(connection_delegate * delegate, socket_t && f1, int l1)
-: fd(move(f1)), delegate_(delegate), lossy_(l1)
+: fd(std::move(f1)), delegate_(delegate), lossy_(l1)
 {
     fd.flags() |= O_NONBLOCK;
 
@@ -42,7 +42,7 @@ shared_ptr<connection> connection::to_dst(const sockaddr_in & dst, connection_de
         return nullptr;
     }
     IF_LEVEL(2) LOG_NONMEMBER << "connection::to_dst fd=" << s << " to dst " << inet_ntoa(dst.sin_addr) << ":" << ntoh(dst.sin_port);
-    return make_shared<connection>(delegate, move(s), lossy);
+    return make_shared<connection>(delegate, std::move(s), lossy);
 }
 
 bool connection::send(const string & b) {
@@ -173,7 +173,7 @@ bool connection::readpdu() {
         size_t sz = ntoh(sz1);
 
         if (sz > rpc_protocol::MAX_PDU) {
-            IF_LEVEL(2) LOG << "read pdu TOO BIG " << sz << " network order=" << hex << sz1;
+            IF_LEVEL(2) LOG << "read pdu TOO BIG " << sz << " network order=" << std::hex << sz1;
             return false;
         }