Simplify initialization of fileName member of Rule instances

This commit is contained in:
Eduardo Arias
2024-05-06 01:39:55 -03:00
parent 2ad87f640f
commit 2c613fb77c
12 changed files with 26 additions and 27 deletions

View File

@@ -33,9 +33,9 @@ class RuleMarker : public Rule {
public:
RuleMarker(
const std::string &name,
std::unique_ptr<std::string> fileName,
const std::string &fileName,
int lineNumber)
: Rule(std::move(fileName), lineNumber),
: Rule(fileName, lineNumber),
m_name(name) { }
RuleMarker(const RuleMarker &r) = delete;