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/theory/atom_requests.cpp | |
parent | 4b7de240edeee362a0b9ca440c22a8b0744cf34b (diff) |
Initial work towards -Wshadow (#3817)
Diffstat (limited to 'src/theory/atom_requests.cpp')
-rw-r--r-- | src/theory/atom_requests.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/theory/atom_requests.cpp b/src/theory/atom_requests.cpp index 6054ac603..821c2384c 100644 --- a/src/theory/atom_requests.cpp +++ b/src/theory/atom_requests.cpp @@ -65,15 +65,13 @@ void AtomRequests::add(TNode triggerAtom, TNode atomToSend, theory::TheoryId toT d_triggerToRequestMap[triggerAtom] = index; } -bool AtomRequests::atom_iterator::done() const { - return index == null_index; -} +bool AtomRequests::atom_iterator::done() const { return d_index == null_index; } void AtomRequests::atom_iterator::next() { - index = requests.d_requests[index].previous; + d_index = d_requests.d_requests[d_index].d_previous; } const AtomRequests::Request& AtomRequests::atom_iterator::get() const { - return requests.d_requests[index].request; + return d_requests.d_requests[d_index].d_request; } |