Commit 4526ae57 authored by Stephan Lachnit's avatar Stephan Lachnit Committed by Simon Spannagel
Browse files

GeometryManager: make linter happy



Signed-off-by: default avatarStephan Lachnit <stephanlachnit@debian.org>
(cherry picked from commit 956a2788)
parent bfd7146b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;

+1 −1
Original line number Diff line number Diff line
@@ -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