From 9c17ca7e5d0fd5015e052f838731302f32f25de9 Mon Sep 17 00:00:00 2001 From: DarkoGNU <42816979+DarkoGNU@users.noreply.github.com> Date: Wed, 12 Jan 2022 23:45:17 +0100 Subject: [PATCH] Forgot to move --- Interpreter/Interpreter.cpp | 2 +- Interpreter/Parser/Parser.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Interpreter/Interpreter.cpp b/Interpreter/Interpreter.cpp index fec1aa8..e076ddd 100644 --- a/Interpreter/Interpreter.cpp +++ b/Interpreter/Interpreter.cpp @@ -14,7 +14,7 @@ #include "Writer.hpp" Interpreter::Interpreter(const int argc, char const *const argv[]) - : params(), status(params.readParams(argc, argv)), + : status(params.readParams(argc, argv)), tilemap(params.getSize()), turtle(tilemap) {} bool Interpreter::bad() const { return !status; } diff --git a/Interpreter/Parser/Parser.cpp b/Interpreter/Parser/Parser.cpp index bd2dab9..4b66d23 100644 --- a/Interpreter/Parser/Parser.cpp +++ b/Interpreter/Parser/Parser.cpp @@ -13,7 +13,8 @@ #include "DeepLexer.hpp" #include "SimpleLexer.hpp" -Parser::Parser(std::filesystem::path inputPath) : inputPath(inputPath) {} +Parser::Parser(std::filesystem::path inputPath) + : inputPath(std::move(inputPath)) {} std::vector> Parser::getCode() const { return code; }