Skip to content

Commit 47d7623

Browse files
committed
Use staticString less often
1 parent 25a0524 commit 47d7623

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cppconv/dwriter/dwriter.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,7 @@ void calcNeedsCast(T)(ref immutable(Formula)* needsCastCondition, ref immutable(
10571057
if (toType1.type !is null && toType1.kind == TypeKind.array)
10581058
{
10591059
auto atype = cast(ArrayType) toType1.type;
1060-
if ((atype.declarator.isValid && !atype.declarator.childs[2].isValid)
1061-
|| parent3.name != "InitDeclarator")
1060+
if ((atype.declarator.isValid && !atype.declarator.childs[2].isValid))
10621061
{
10631062
ConditionMap!string codeType;
10641063
if (!combination.prefixDone && wholeExpressionWrapper !is null)

0 commit comments

Comments
 (0)