Skip to content

Commit 77f0b4f

Browse files
committed
Use braced-init-lists
1 parent 54d618c commit 77f0b4f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/analyses/variable-sensitivity/variable_sensitivity_object_factory.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ abstract_object_pointert initialize_context_abstract_object(
152152
{
153153
if(top || bottom)
154154
{
155-
return abstract_object_pointert(new context_classt(
156-
abstract_object_pointert(new abstract_object_classt(type, top, bottom)),
155+
return abstract_object_pointert(new context_classt{
156+
abstract_object_pointert(new abstract_object_classt{type, top, bottom}),
157157
type,
158158
top,
159-
bottom));
159+
bottom});
160160
}
161161
else
162162
{
163163
PRECONDITION(type == ns.follow(e.type()));
164-
return abstract_object_pointert(new context_classt(
165-
abstract_object_pointert(new abstract_object_classt(e, environment, ns)),
164+
return abstract_object_pointert(new context_classt{
165+
abstract_object_pointert(new abstract_object_classt{e, environment, ns}),
166166
e,
167167
environment,
168-
ns));
168+
ns});
169169
}
170170
}
171171

@@ -207,13 +207,13 @@ abstract_object_pointert initialize_abstract_object(
207207
if(top || bottom)
208208
{
209209
return abstract_object_pointert(
210-
new abstract_object_classt(type, top, bottom));
210+
new abstract_object_classt{type, top, bottom});
211211
}
212212
else
213213
{
214214
PRECONDITION(type == ns.follow(e.type()));
215215
return abstract_object_pointert(
216-
new abstract_object_classt(e, environment, ns));
216+
new abstract_object_classt{e, environment, ns});
217217
}
218218
}
219219
}

src/analyses/variable-sensitivity/variable_sensitivity_object_factory.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ struct vsd_configt
7373
static vsd_configt intervals();
7474

7575
vsd_configt()
76-
: value_abstract_type(CONSTANT),
77-
pointer_abstract_type(POINTER_INSENSITIVE),
78-
struct_abstract_type(STRUCT_INSENSITIVE),
79-
array_abstract_type(ARRAY_INSENSITIVE),
80-
union_abstract_type(UNION_INSENSITIVE),
76+
: value_abstract_type{CONSTANT},
77+
pointer_abstract_type{POINTER_INSENSITIVE},
78+
struct_abstract_type{STRUCT_INSENSITIVE},
79+
array_abstract_type{ARRAY_INSENSITIVE},
80+
union_abstract_type{UNION_INSENSITIVE},
8181
context_tracking{false, true},
8282
advanced_sensitivities{false}
8383
{
@@ -118,7 +118,7 @@ class variable_sensitivity_object_factoryt
118118
}
119119

120120
explicit variable_sensitivity_object_factoryt(const vsd_configt &options)
121-
: configuration(options)
121+
: configuration{options}
122122
{
123123
}
124124

0 commit comments

Comments
 (0)