diff --git a/ProcessLib/Parameter/ConstantParameter.cpp b/ProcessLib/Parameter/ConstantParameter.cpp index b536a2589f8ef758c2fad07656618d5f32b11a2f..ab3e051c746920f83b79e440d9b57f8eb35cb8ad 100644 --- a/ProcessLib/Parameter/ConstantParameter.cpp +++ b/ProcessLib/Parameter/ConstantParameter.cpp @@ -19,7 +19,7 @@ std::unique_ptr<ParameterBase> createConstantParameter( //! \ogs_file_param{parameter__type} config.checkConfigParameter("type", "Constant"); //! \ogs_file_param{parameter__Constant__value} - auto value = config.getConfigParameter<double>("value"); + auto const value = config.getConfigParameter<double>("value"); DBUG("Using value %g", value); return std::unique_ptr<ParameterBase>(new ConstantParameter<double>(value)); diff --git a/ProcessLib/Parameter/MeshElementParameter.cpp b/ProcessLib/Parameter/MeshElementParameter.cpp index eb3b070535d78b30df3907cb72407bfd755b45c3..d21ffdeb9dfa110ff40d1ef74a6392d6c29f469b 100644 --- a/ProcessLib/Parameter/MeshElementParameter.cpp +++ b/ProcessLib/Parameter/MeshElementParameter.cpp @@ -20,7 +20,7 @@ std::unique_ptr<ParameterBase> createMeshElementParameter( //! \ogs_file_param{parameter__type} config.checkConfigParameter("type", "MeshElement"); //! \ogs_file_param{parameter__MeshElement__field_name} - auto field_name = config.getConfigParameter<std::string>("field_name"); + auto const field_name = config.getConfigParameter<std::string>("field_name"); DBUG("Using field_name %s", field_name.c_str()); if (!mesh.getProperties().hasPropertyVector(field_name)) { diff --git a/ProcessLib/Parameter/MeshNodeParameter.cpp b/ProcessLib/Parameter/MeshNodeParameter.cpp index 63725778bd963c342e8a7e2312b1eb5185f2472f..af986ad603c0471b061dd259971c9090e93d5ccc 100644 --- a/ProcessLib/Parameter/MeshNodeParameter.cpp +++ b/ProcessLib/Parameter/MeshNodeParameter.cpp @@ -20,7 +20,7 @@ std::unique_ptr<ParameterBase> createMeshNodeParameter( //! \ogs_file_param{parameter__type} config.checkConfigParameter("type", "MeshNode"); //! \ogs_file_param{parameter__MeshNode__field_name} - auto field_name = config.getConfigParameter<std::string>("field_name"); + auto const field_name = config.getConfigParameter<std::string>("field_name"); DBUG("Using field_name %s", field_name.c_str()); if (!mesh.getProperties().hasPropertyVector(field_name)) { diff --git a/ProcessLib/Parameter/Parameter.cpp b/ProcessLib/Parameter/Parameter.cpp index 3be7139560cf1df7e7e4a4a30afa56719f255356..8655e90182882c6bbcd61910102151baea26876d 100644 --- a/ProcessLib/Parameter/Parameter.cpp +++ b/ProcessLib/Parameter/Parameter.cpp @@ -23,9 +23,9 @@ std::unique_ptr<ParameterBase> createParameter( { //! \ogs_file_param{parameter__name} - auto name = config.getConfigParameter<std::string>("name"); + auto const name = config.getConfigParameter<std::string>("name"); //! \ogs_file_param{parameter__type} - auto type = config.peekConfigParameter<std::string>("type"); + auto const type = config.peekConfigParameter<std::string>("type"); // Create parameter based on the provided type. if (type == "Constant")