Skip to content

Commit 81bc04b

Browse files
committed
Actually use the parameter of set_is_stub
Also pass it by value, a reference is likely more costly in this case.
1 parent 5d354a5 commit 81bc04b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jbmc/src/java_bytecode/java_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ class java_class_typet:public class_typet
171171
set(ID_final, is_final);
172172
}
173173

174-
void set_is_stub(const bool &is_stub)
174+
void set_is_stub(bool is_stub)
175175
{
176-
set(ID_incomplete_class, true);
176+
set(ID_incomplete_class, is_stub);
177177
}
178178

179179
bool get_is_stub() const

0 commit comments

Comments
 (0)