]> git.stg.codes - stg.git/commitdiff
Replace boost::scoped_ptr with std::unique_ptr.
authorMaksym Mamontov <madf@madf.info>
Mon, 27 Jan 2020 20:58:14 +0000 (22:58 +0200)
committerMaksym Mamontov <madf@madf.info>
Mon, 27 Jan 2020 20:58:14 +0000 (22:58 +0200)
libs/json/include/stg/json_generator.h
libs/json/include/stg/json_parser.h
rlm_stg/conn.h
rlm_stg/stg_client.cpp
rlm_stg/stg_client.h
stargazer/plugins/other/radius/conn.h

index 831b0e05a931d7735c1f410623995e1c6cd353a2..4e8c870c296980cb5997f01b60e23b8bf3233a7d 100644 (file)
@@ -26,8 +26,6 @@
 #include <vector>
 #include <utility>
 
-#include <boost/scoped_ptr.hpp>
-
 struct yajl_gen_t;
 
 namespace STG
index a614257944441c9c85248d0eec9ae68c504a7c01..5884039d9c2f3971a076563c366b08ab345e64c5 100644 (file)
@@ -25,8 +25,7 @@
 
 #include <string>
 #include <map>
-
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 namespace STG
 {
@@ -59,7 +58,7 @@ class Parser
 
     private:
         class Impl;
-        boost::scoped_ptr<Impl> m_impl;
+        std::unique_ptr<Impl> m_impl;
 };
 
 template <typename T>
index 6b6fd2616382f6d833761d843d57ba2f1c1a70ae..92fbff826cc64392ff6585a2a1839a242aa790cc 100644 (file)
@@ -23,9 +23,8 @@
 
 #include "types.h"
 
-#include <boost/scoped_ptr.hpp>
-
 #include <string>
+#include <memory>
 #include <stdexcept>
 #include <cstdint>
 
@@ -53,7 +52,7 @@ class Conn
 
     private:
         class Impl;
-        boost::scoped_ptr<Impl> m_impl;
+        std::unique_ptr<Impl> m_impl;
 };
 
 }
index e34c50cdbaf30137125e29d50c55b1d338c47336..217272255e5c448afc92c0b4583fdd2e259878a3 100644 (file)
@@ -51,7 +51,7 @@ class Client::Impl
 
     private:
         std::string m_address;
-        boost::scoped_ptr<Conn> m_conn;
+        std::unique_ptr<Conn> m_conn;
 
         pthread_mutex_t m_mutex;
         pthread_cond_t m_cond;
index 4d4c582b6529379272fe58570f024c85b984d32e..249b887134167ce45f6ba60fdec98f8c1adf780b 100644 (file)
@@ -23,9 +23,8 @@
 
 #include "types.h"
 
-#include <boost/scoped_ptr.hpp>
-
 #include <string>
+#include <memory>
 #include <cstdint>
 
 namespace STG
@@ -48,7 +47,7 @@ public:
 
 private:
     class Impl;
-    boost::scoped_ptr<Impl> m_impl;
+    std::unique_ptr<Impl> m_impl;
 };
 
 } // namespace RLM
index 96e74300f2f7f8b413570f0b362f3a970415792e..7b633d71dc9112606b5c3df916d772d85ab8e005 100644 (file)
@@ -21,9 +21,8 @@
 #ifndef __STG_SGCONFIG_CONN_H__
 #define __STG_SGCONFIG_CONN_H__
 
-#include <boost/scoped_ptr.hpp>
-
 #include <string>
+#include <memory>
 
 class USER;
 class USERS;
@@ -50,7 +49,7 @@ class Conn
 
     private:
         class Impl;
-        boost::scoped_ptr<Impl> m_impl;
+        std::unique_ptr<Impl> m_impl;
 };
 
 }