From f02020f8d7094e395e905ed6fb93c0f796d2531b Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 10 Mar 2021 17:18:00 +0100 Subject: [PATCH] [PL/DS] Don't repeat types. RAII. --- ProcessLib/DeactivatedSubdomain.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ProcessLib/DeactivatedSubdomain.cpp b/ProcessLib/DeactivatedSubdomain.cpp index 32832218e15..7a8641838d2 100644 --- a/ProcessLib/DeactivatedSubdomain.cpp +++ b/ProcessLib/DeactivatedSubdomain.cpp @@ -55,11 +55,9 @@ std::unique_ptr<DeactivatedSubdomain const> createDeactivatedSubdomain( config.peekConfigParameter<std::string>("time_interval"); auto time_interval = BaseLib::createTimeInterval(config); - std::vector<int> deactivated_subdomain_material_ids; - deactivated_subdomain_material_ids = + auto deactivated_subdomain_material_ids = //! \ogs_file_param{prj__process_variables__process_variable__deactivated_subdomains__deactivated_subdomain__material_ids} - config.getConfigParameter<std::vector<int>>("material_ids", - std::vector<int>{}); + config.getConfigParameter("material_ids", std::vector<int>{}); if (deactivated_subdomain_material_ids.empty()) { -- GitLab