mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Makes m_fileName a shared pointer
This commit is contained in:
@@ -70,7 +70,7 @@ Rule::Rule(const std::string &marker)
|
||||
m_op(NULL),
|
||||
m_chainedRuleChild(nullptr),
|
||||
m_chainedRuleParent(NULL),
|
||||
m_fileName(""),
|
||||
/* m_fileName(""), */
|
||||
m_marker(marker),
|
||||
m_rev(""),
|
||||
m_ver(""),
|
||||
@@ -83,7 +83,7 @@ Rule::Rule(const std::string &marker)
|
||||
Rule::Rule(Operator *_op,
|
||||
variables::Variables *_variables,
|
||||
std::vector<Action *> *actions,
|
||||
std::string fileName,
|
||||
std::unique_ptr<std::string> fileName,
|
||||
int lineNumber)
|
||||
: m_theDisruptiveAction(nullptr),
|
||||
m_logData(nullptr),
|
||||
@@ -103,7 +103,7 @@ Rule::Rule(Operator *_op,
|
||||
m_op(_op),
|
||||
m_chainedRuleChild(nullptr),
|
||||
m_chainedRuleParent(NULL),
|
||||
m_fileName(fileName),
|
||||
m_fileName(std::move(fileName)),
|
||||
m_marker(""),
|
||||
m_rev(""),
|
||||
m_ver(""),
|
||||
|
Reference in New Issue
Block a user