From: Arvin Schnell Date: Fri, 13 Dec 2024 08:27:03 +0000 (+0100) Subject: - coding style X-Git-Tag: v0.12.1~15^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F965%2Fhead;p=thirdparty%2Fsnapper.git - coding style --- 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;