Use “using” instead of typedef
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
class Poller;
|
||||
|
||||
typedef int socket_t;
|
||||
using socket_t = int;
|
||||
|
||||
class SocketHandler
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Xmpp
|
||||
// Contains:
|
||||
// - an XMPP-valid UTF-8 body
|
||||
// - an XML node representing the XHTML-IM body, or null
|
||||
typedef std::tuple<const std::string, std::unique_ptr<XmlNode>> body;
|
||||
using body = std::tuple<const std::string, std::unique_ptr<XmlNode>>;
|
||||
}
|
||||
|
||||
#endif /* XMPP_BODY_HPP_INCLUDED */
|
||||
|
||||
Reference in New Issue
Block a user