Skip to content

Commit 5f272f7

Browse files
Remove unnecessary casts from json.h
1 parent 30fe7c8 commit 5f272f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/json.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ class json_arrayt:public jsont
147147
jsont &push_back(const jsont &json)
148148
{
149149
array.push_back(json);
150-
return static_cast<jsont &>(array.back());
150+
return array.back();
151151
}
152152

153153
jsont &push_back()
154154
{
155155
array.push_back(jsont());
156-
return static_cast<jsont &>(array.back());
156+
return array.back();
157157
}
158158
};
159159

0 commit comments

Comments
 (0)