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

@@ -46,9 +46,9 @@ class RuleScript : public Rule {
public:
RuleScript(const std::string &name,
std::vector<Action *> *actions,
const std::string &fileName,
std::unique_ptr<std::string> fileName,
int lineNumber)
: Rule(NULL, NULL, actions, fileName, lineNumber),
: Rule(NULL, NULL, actions, std::move(fileName), lineNumber),
m_name(name) { }
bool init(std::string *err);