Loading src/core/geometry/GeometryManager.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -381,16 +381,16 @@ void GeometryManager::load_models() { } // Read model file and add model to list read_model_file(std::move(sub_path)); read_model_file(sub_path); } } else { // Always a file because paths are already checked read_model_file(std::filesystem::path(path)); read_model_file(path); } } } void GeometryManager::read_model_file(std::filesystem::path path) { void GeometryManager::read_model_file(const std::filesystem::path& path) { auto model_name = path.stem(); LOG(TRACE) << "Reading model " << model_name << " in path " << path; Loading src/core/geometry/GeometryManager.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ namespace allpix { * @brief Read a model file, check if the model is required and call \ref GeometryManager::addModel in that case * @param path Path to the model file */ void read_model_file(std::filesystem::path path); void read_model_file(const std::filesystem::path& path); /** * @brief Get the orientation of an object Loading Loading
src/core/geometry/GeometryManager.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -381,16 +381,16 @@ void GeometryManager::load_models() { } // Read model file and add model to list read_model_file(std::move(sub_path)); read_model_file(sub_path); } } else { // Always a file because paths are already checked read_model_file(std::filesystem::path(path)); read_model_file(path); } } } void GeometryManager::read_model_file(std::filesystem::path path) { void GeometryManager::read_model_file(const std::filesystem::path& path) { auto model_name = path.stem(); LOG(TRACE) << "Reading model " << model_name << " in path " << path; Loading
src/core/geometry/GeometryManager.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ namespace allpix { * @brief Read a model file, check if the model is required and call \ref GeometryManager::addModel in that case * @param path Path to the model file */ void read_model_file(std::filesystem::path path); void read_model_file(const std::filesystem::path& path); /** * @brief Get the orientation of an object Loading