From c883255a27d4f468049a640c499b2ef44e90d987 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Fri, 17 Apr 2020 14:23:45 +0200 Subject: [PATCH] [MPL] Avoid copy of string. Using reference. --- MaterialLib/MPL/CreatePhase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MaterialLib/MPL/CreatePhase.cpp b/MaterialLib/MPL/CreatePhase.cpp index ccbf7668aaf..ce2b7edb58f 100644 --- a/MaterialLib/MPL/CreatePhase.cpp +++ b/MaterialLib/MPL/CreatePhase.cpp @@ -52,7 +52,7 @@ std::unique_ptr<MaterialPropertyLib::Phase> createPhase( })) { ERR("Phase type should be one of:"); - for (auto const type : allowed_phase_types) + for (auto const& type : allowed_phase_types) { ERR("{:s}", type); } -- GitLab