Skip to content

Commit e25e0b3

Browse files
committed
Do not shadow parameter is_virtual
The local variable refers to the base class, thus name it as such.
1 parent 62280d2 commit e25e0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/cpp_typecheck_bases.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void cpp_typecheckt::add_base_components(
155155

156156
const symbolt &symb = lookup(b.type());
157157

158-
const bool is_virtual = b.get_bool(ID_virtual);
158+
const bool is_virtual_base = b.get_bool(ID_virtual);
159159

160160
// recursive call
161161
add_base_components(
@@ -164,7 +164,7 @@ void cpp_typecheckt::add_base_components(
164164
to,
165165
bases,
166166
vbases,
167-
is_virtual);
167+
is_virtual_base);
168168
}
169169

170170
// add the components

0 commit comments

Comments
 (0)