Makes m_fileName a shared pointer

This commit is contained in:
Felipe Zimmerle
2019-01-22 16:07:47 -03:00
parent 14b2bd77a0
commit 343b86c2a7
8 changed files with 18 additions and 18 deletions

View File

@@ -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(""),