[llvm/el6] Removing the use of auto in the devtoolset patch

Dave Johansen daveisfera at fedoraproject.org
Fri Jan 2 19:21:04 UTC 2015


commit 70d0626d0a3c072c95f7bd5bf36e5f0156b57431
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Fri Jan 2 12:21:09 2015 -0700

    Removing the use of auto in the devtoolset patch

 0004-devtoolset.patch |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/0004-devtoolset.patch b/0004-devtoolset.patch
index c22eccf..8c24c61 100644
--- a/0004-devtoolset.patch
+++ b/0004-devtoolset.patch
@@ -9,10 +9,10 @@
 +    if (const char *software_collections = getenv("X_SCLS")) {
 +      SmallVector<StringRef, 4> Scls;
 +      StringRef(software_collections).split(Scls, StringRef(" "), -1, false);
-+      for (const auto &Scl : Scls) {
-+        if (!Scl.startswith(StringRef("devtoolset-")))
++      for (SmallVector<StringRef, 4>::const_iterator SclsIter = Scls.begin(); SclsIter != Scls.end(); ++SclsIter) {
++        if (!SclsIter->startswith(StringRef("devtoolset-")))
 +          continue;
-+        const std::string SclPath = std::string("/opt/rh/") + Scl.str() + std::string("/root/usr");
++        const std::string SclPath = std::string("/opt/rh/") + SclsIter->str() + std::string("/root/usr");
 +        Prefixes.push_back(SclPath);
 +      }
 +    }


More information about the scm-commits mailing list