mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Minor changes to debug_log_writer
- Removed unused m_first data member. - Explicitly delete copy constructor and assignment operator. - Removed unused included headers.
This commit is contained in:
parent
373633ffe2
commit
91a736692a
@ -15,18 +15,6 @@
|
||||
|
||||
#include "src/debug_log/debug_log_writer.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include "src/utils/shared_files.h"
|
||||
|
||||
namespace modsecurity {
|
||||
|
@ -13,15 +13,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
#ifndef SRC_DEBUG_LOG_DEBUG_LOG_WRITER_H_
|
||||
@ -45,7 +37,7 @@ class DebugLogWriter {
|
||||
static int open(const std::string& m_fileName, std::string *error);
|
||||
|
||||
private:
|
||||
DebugLogWriter() : m_first(NULL) { }
|
||||
DebugLogWriter() { }
|
||||
~DebugLogWriter() { }
|
||||
|
||||
// C++ 03
|
||||
@ -53,10 +45,8 @@ class DebugLogWriter {
|
||||
// Dont forget to declare these two. You want to make sure they
|
||||
// are unacceptable otherwise you may accidentally get copies of
|
||||
// your singleton appearing.
|
||||
DebugLogWriter(DebugLogWriter const&);
|
||||
void operator=(DebugLogWriter const&);
|
||||
|
||||
struct debug_log_file_handler *m_first;
|
||||
DebugLogWriter(DebugLogWriter const&) = delete;
|
||||
void operator=(DebugLogWriter const&) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user