diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-02-26 19:11:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 19:11:31 -0600 |
commit | d41d2a817f884e0f6c8d5cb3b87b4298bc1b56f5 (patch) | |
tree | 5cfe4336c5aa40cac613238a2625b1fb4aa55d31 /src/api | |
parent | 4b7de240edeee362a0b9ca440c22a8b0744cf34b (diff) |
Initial work towards -Wshadow (#3817)
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/cvc4cpp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/cvc4cpp.cpp b/src/api/cvc4cpp.cpp index 4e5f4604e..02fbbc42c 100644 --- a/src/api/cvc4cpp.cpp +++ b/src/api/cvc4cpp.cpp @@ -1832,9 +1832,9 @@ DatatypeDecl::DatatypeDecl(const Solver* s, bool isCoDatatype) { std::vector<Type> tparams; - for (const Sort& s : params) + for (const Sort& p : params) { - tparams.push_back(*s.d_type); + tparams.push_back(*p.d_type); } d_dtype = std::shared_ptr<CVC4::Datatype>( new CVC4::Datatype(s->getExprManager(), name, tparams, isCoDatatype)); |