Skip to content

Commit 65a1ffa

Browse files
committed
Mozilla bug 2041298 - Use nullptr instead of 0.
1 parent cd1eb65 commit 65a1ffa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,9 @@ protected void fieldDeclaration(FieldDeclaration n, LocalSymbolTable arg) {
675675
printer.print("::");
676676
declarator.getId().accept(this, arg);
677677

678-
printer.printLn(" = 0;");
678+
printer.print(" = ");
679+
printer.print(cppTypes.nullLiteral());
680+
printer.printLn(";");
679681
printer = staticInitializerPrinter;
680682

681683
staticReleases.add("delete[] "

0 commit comments

Comments
 (0)