Skip to content

Commit 64b4db3

Browse files
author
Daniel Kroening
authored
Merge pull request #3508 from tautschnig/constructors-explicit
Remove unnecessary "explicit"
2 parents 50896f9 + e3360bd commit 64b4db3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/util/std_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ class side_effect_expr_throwt:public side_effect_exprt
16661666
{
16671667
}
16681668

1669-
explicit side_effect_expr_throwt(
1669+
side_effect_expr_throwt(
16701670
const irept &exception_list,
16711671
const typet &type,
16721672
const source_locationt &loc)

src/util/std_expr.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,11 +1841,11 @@ class union_exprt:public unary_exprt
18411841
{
18421842
}
18431843

1844-
explicit union_exprt(
1844+
union_exprt(
18451845
const irep_idt &_component_name,
18461846
const exprt &_value,
1847-
const typet &_type):
1848-
unary_exprt(ID_union, _value, _type)
1847+
const typet &_type)
1848+
: unary_exprt(ID_union, _value, _type)
18491849
{
18501850
set_component_name(_component_name);
18511851
}
@@ -1963,9 +1963,11 @@ class complex_exprt:public binary_exprt
19631963
{
19641964
}
19651965

1966-
explicit complex_exprt(
1967-
const exprt &_real, const exprt &_imag, const complex_typet &_type):
1968-
binary_exprt(_real, ID_complex, _imag, _type)
1966+
complex_exprt(
1967+
const exprt &_real,
1968+
const exprt &_imag,
1969+
const complex_typet &_type)
1970+
: binary_exprt(_real, ID_complex, _imag, _type)
19691971
{
19701972
}
19711973

@@ -4550,9 +4552,8 @@ class concatenation_exprt:public exprt
45504552
{
45514553
}
45524554

4553-
explicit concatenation_exprt(
4554-
const exprt &_op0, const exprt &_op1, const typet &_type):
4555-
exprt(ID_concatenation, _type)
4555+
concatenation_exprt(const exprt &_op0, const exprt &_op1, const typet &_type)
4556+
: exprt(ID_concatenation, _type)
45564557
{
45574558
add_to_operands(_op0, _op1);
45584559
}

0 commit comments

Comments
 (0)