From a8a9b776648745fc4bc7b8bcc339b2a208e29e1d Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Fri, 13 Dec 2024 09:27:03 +0100 Subject: [PATCH] - coding style --- stomp/Stomp.cc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/stomp/Stomp.cc b/stomp/Stomp.cc index 3fb5a27d..085fb5dc 100644 --- a/stomp/Stomp.cc +++ b/stomp/Stomp.cc @@ -22,16 +22,15 @@ #include - -using namespace std; - - #include "Stomp.h" namespace Stomp { + using namespace std; + + Message read_message(istream& is) { @@ -108,7 +107,7 @@ namespace Stomp if (key == "content-length") { has_content_length = true; - content_length = std::stol(value.c_str()); + content_length = stol(value.c_str()); } msg.headers[key] = value; @@ -150,8 +149,8 @@ namespace Stomp } - std::string - strip_cr(const std::string& in) + string + strip_cr(const string& in) { string::size_type length = in.size(); @@ -162,8 +161,8 @@ namespace Stomp } - std::string - escape_header(const std::string& in) + string + escape_header(const string& in) { string out; @@ -189,8 +188,8 @@ namespace Stomp } - std::string - unescape_header(const std::string& in) + string + unescape_header(const string& in) { string out; -- 2.47.3