diff options
Diffstat (limited to 's_sock.h')
| -rw-r--r-- | s_sock.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -5,21 +5,22 @@ using namespace std; -class s_sock +class s_sock { private: - static sock* obj; + static sock* obj; public: - static void init() - { - obj = new sock(); - } + static void init() + { + obj = new sock(); + } - static sock& get() - { - return *obj; - } + static sock& get + () + { + return *obj; + } }; |
