From 2241f71276a1ca650a7f09fdcdda640f2a4d2b01 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sat, 7 Oct 2023 14:13:22 +0200 Subject: [PATCH] fixed clazy warning --- tom/include/tom/commands/make/makecommand.hpp | 4 ++-- tom/src/tom/commands/make/makecommand.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tom/include/tom/commands/make/makecommand.hpp b/tom/include/tom/commands/make/makecommand.hpp index 257ba0992..753357414 100644 --- a/tom/include/tom/commands/make/makecommand.hpp +++ b/tom/include/tom/commands/make/makecommand.hpp @@ -43,9 +43,9 @@ namespace Tom::Commands::Make the default path. */ static fspath guessPathForMakeByPwd(const fspath &defaultPath, - const std::optional< + std::optional< std::reference_wrapper - > &defaultModelsPath = std::nullopt); + > defaultModelsPath = std::nullopt); private: /*! Ensure that a file in the given folder doesn't already exist. */ diff --git a/tom/src/tom/commands/make/makecommand.cpp b/tom/src/tom/commands/make/makecommand.cpp index 187d51ed6..fff02ccc1 100644 --- a/tom/src/tom/commands/make/makecommand.cpp +++ b/tom/src/tom/commands/make/makecommand.cpp @@ -53,7 +53,7 @@ void MakeCommand::throwIfContainsNamespaceOrPath( fspath MakeCommand::guessPathForMakeByPwd( const fspath &defaultPath, - const std::optional> &defaultModelsPath) + std::optional> defaultModelsPath) { /* Method is commented on heavily because the logic is sketchy and unclear. 😵‍💫🙃 It tries to guess a path based on the pwd and the defaultPath (can be relative