From f05d039231a4f9aa123ede8ba601263869451899 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Tue, 9 Jun 2020 14:21:19 +0200 Subject: [PATCH] Fix a few clazy warnings --- src/language/modules/SchemeModule.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/language/modules/SchemeModule.cpp b/src/language/modules/SchemeModule.cpp index 4e0f8f737..fc9eae906 100644 --- a/src/language/modules/SchemeModule.cpp +++ b/src/language/modules/SchemeModule.cpp @@ -72,9 +72,9 @@ struct GlaceScheme GlaceScheme(const IMesh& mesh, const std::vector<std::shared_ptr<const IBoundaryConditionDescriptor>>& bc_descriptor_list, - FunctionSymbolId rho_id, - FunctionSymbolId u_id, - FunctionSymbolId p_id) + const FunctionSymbolId& rho_id, + const FunctionSymbolId& u_id, + const FunctionSymbolId& p_id) : m_mesh{dynamic_cast<const MeshType&>(mesh)} { MeshDataType mesh_data(m_mesh); @@ -254,7 +254,8 @@ SchemeModule::SchemeModule() [](std::shared_ptr<const IMesh> p_mesh, const std::vector<std::shared_ptr<const IBoundaryConditionDescriptor>>& bc_descriptor_list, - FunctionSymbolId rho_id, FunctionSymbolId u_id, FunctionSymbolId p_id) -> void { + const FunctionSymbolId& rho_id, const FunctionSymbolId& u_id, + const FunctionSymbolId& p_id) -> void { switch (p_mesh->dimension()) { case 1: { GlaceScheme<1>{*p_mesh, bc_descriptor_list, rho_id, u_id, p_id}; -- GitLab