Skip to content

Commit 763d4d1

Browse files
andreast271tautschnig
authored andcommitted
Style improvements
1 parent 204c60f commit 763d4d1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/cpp/cpp_scope.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ void cpp_scopet::lookup(
142142
other_scope.lookup(base_name, QUALIFIED, id_class, id_set);
143143
}
144144

145-
if(!id_set.empty() &&
146-
id_class!=id_classt::TEMPLATE)
145+
if(!id_set.empty() && id_class != id_classt::TEMPLATE)
147146
return; // done, upwards scopes are hidden
148147

149148
// secondary scopes

src/cpp/cpp_typecheck_method_bodies.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ void cpp_typecheckt::typecheck_method_bodies(
3030
if(body.id()=="cpp_not_typechecked")
3131
continue;
3232

33-
if(body.is_not_nil() &&
34-
!body.is_zero())
35-
{
33+
if(body.is_not_nil() && !body.is_zero())
3634
convert_function(method_symbol);
37-
}
3835
}
3936

4037
old_instantiation_stack.swap(instantiation_stack);

0 commit comments

Comments
 (0)