Kaynağa Gözat

cmTargetPropCommandBase: simplify code path

The outside of the loop does the same return expression.
Ben Boeckel 7 yıl önce
ebeveyn
işleme
45a49ae58a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Source/cmTargetPropCommandBase.cxx

+ 1 - 1
Source/cmTargetPropCommandBase.cxx

@@ -101,7 +101,7 @@ bool cmTargetPropCommandBase::ProcessContentArgs(
   for (unsigned int i = argIndex; i < args.size(); ++i, ++argIndex) {
   for (unsigned int i = argIndex; i < args.size(); ++i, ++argIndex) {
     if (args[i] == "PUBLIC" || args[i] == "PRIVATE" ||
     if (args[i] == "PUBLIC" || args[i] == "PRIVATE" ||
         args[i] == "INTERFACE") {
         args[i] == "INTERFACE") {
-      return this->PopulateTargetProperies(scope, content, prepend, system);
+      break;
     }
     }
     content.push_back(args[i]);
     content.push_back(args[i]);
   }
   }