Fix build error 09/308009/2
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 15 Mar 2024 07:38:57 +0000 (16:38 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 15 Mar 2024 07:40:29 +0000 (16:40 +0900)
 -Werror=range-loop-construct

Change-Id: Ica14612f07d0991cef3130dafba05709ea595036
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/common/step/configuration/step_parse_manifest.cc

index 633c509..e2ad305 100644 (file)
@@ -1111,7 +1111,7 @@ void StepParseManifest::GetLegacySplashScreenFromMetadata(application_x* app,
   std::sregex_token_iterator first(val.begin(), val.end(), re, -1);
   std::sregex_token_iterator last;
   std::vector<std::string> tokens(first, last);
-  for (const auto t : tokens) {
+  for (const auto& t : tokens) {
     if (t.compare(kPortraitEffectImageValue))
       portrait_src = t;
     else if (t.compare(kLandscapeEffectImageValue))