File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#include " src/debug_log/debug_log_writer.h"
17
17
18
- #include < errno.h>
19
- #include < fcntl.h>
20
- #include < pthread.h>
21
- #include < stdio.h>
22
- #include < sys/ipc.h>
23
- #include < sys/shm.h>
24
- #include < sys/stat.h>
25
- #include < sys/types.h>
26
- #include < unistd.h>
27
-
28
- #include < fstream>
29
-
30
18
#include " src/utils/shared_files.h"
31
19
32
20
namespace modsecurity {
Original file line number Diff line number Diff line change 13
13
*
14
14
*/
15
15
16
- #include < stdio.h>
17
- #include < sys/ipc.h>
18
- #include < sys/shm.h>
19
- #include < sys/types.h>
20
-
21
- #include < iostream>
22
- #include < map>
23
16
#include < string>
24
- #include < cstring>
25
17
26
18
27
19
#ifndef SRC_DEBUG_LOG_DEBUG_LOG_WRITER_H_
@@ -45,18 +37,16 @@ class DebugLogWriter {
45
37
static int open (const std::string& m_fileName, std::string *error);
46
38
47
39
private:
48
- DebugLogWriter () : m_first( NULL ) { }
40
+ DebugLogWriter () { }
49
41
~DebugLogWriter () { }
50
42
51
43
// C++ 03
52
44
// ========
53
45
// Dont forget to declare these two. You want to make sure they
54
46
// are unacceptable otherwise you may accidentally get copies of
55
47
// your singleton appearing.
56
- DebugLogWriter (DebugLogWriter const &);
57
- void operator =(DebugLogWriter const &);
58
-
59
- struct debug_log_file_handler *m_first;
48
+ DebugLogWriter (DebugLogWriter const &) = delete ;
49
+ void operator =(DebugLogWriter const &) = delete ;
60
50
};
61
51
62
52
You can’t perform that action at this time.
0 commit comments