diff options
author | trav90 <travawine@protonmail.ch> | 2017-04-19 01:17:19 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2017-04-19 01:17:19 -0500 |
commit | a707688b6abe7d74db9d7e2d3a21fd880bfce115 (patch) | |
tree | 08d1a33f7616e769c95bde252fa4c7ab1bdf9d3f /build | |
parent | d8d08f1e9ed9a0147cca6101162e6871e55ae563 (diff) | |
download | palemoon-gre-a707688b6abe7d74db9d7e2d3a21fd880bfce115.tar.gz |
Fix build bustage in clang-plugin.cpp
Diffstat (limited to 'build')
-rw-r--r-- | build/clang-plugin/clang-plugin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build/clang-plugin/clang-plugin.cpp b/build/clang-plugin/clang-plugin.cpp index f6111baa4..07208eab6 100644 --- a/build/clang-plugin/clang-plugin.cpp +++ b/build/clang-plugin/clang-plugin.cpp @@ -373,7 +373,8 @@ bool classHasAddRefRelease(const CXXRecordDecl *D) { bool seenAddRef = false; bool seenRelease = false; - for (const auto& method : D->methods()) { + for (CXXRecordDecl::method_iterator method = D->method_begin(); + method != D->method_end(); ++method) { std::string name = method->getNameAsString(); if (name == "AddRef") { seenAddRef = true; @@ -397,8 +398,9 @@ bool isClassRefCounted(const CXXRecordDecl *D) { return true; // Look through all base cases to figure out if the parent is a refcounted class. - for (const auto& base : D->bases()) { - bool super = isClassRefCounted(base.getType()); + for (CXXRecordDecl::base_class_const_iterator base = D->bases_begin(); + base != D->bases_end(); ++base) { + bool super = isClassRefCounted(base->getType()); if (super) { return true; } |