]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- coding style 965/head
authorArvin Schnell <aschnell@suse.de>
Fri, 13 Dec 2024 08:27:03 +0000 (09:27 +0100)
committerArvin Schnell <aschnell@suse.de>
Fri, 13 Dec 2024 08:27:03 +0000 (09:27 +0100)
stomp/Stomp.cc

index 3fb5a27d8437b78bee9bc454c88b9be822c06734..085fb5dc84d846bc0368a2f27f7667b9efb777b8 100644 (file)
 
 #include <regex>
 
-
-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;