|
11 | 11 | /// @parblock |
12 | 12 | /// |
13 | 13 | /// Persistence of Vision Ray Tracer ('POV-Ray') version 3.8. |
14 | | -/// Copyright 1991-2018 Persistence of Vision Raytracer Pty. Ltd. |
| 14 | +/// Copyright 1991-2019 Persistence of Vision Raytracer Pty. Ltd. |
15 | 15 | /// |
16 | 16 | /// POV-Ray is free software: you can redistribute it and/or modify |
17 | 17 | /// it under the terms of the GNU Affero General Public License as |
@@ -84,7 +84,7 @@ using namespace pov; |
84 | 84 |
|
85 | 85 | FUNCTION_PTR Parser::Parse_Function(void) |
86 | 86 | { |
87 | | - FUNCTION_PTR ptr = (FUNCTION_PTR)POV_MALLOC(sizeof(FUNCTION), "Function ID"); |
| 87 | + FUNCTION_PTR ptr = new FUNCTION; |
88 | 88 | ExprNode *expression = nullptr; |
89 | 89 | FunctionCode function; |
90 | 90 |
|
@@ -134,7 +134,7 @@ FUNCTION_PTR Parser::Parse_Function(void) |
134 | 134 |
|
135 | 135 | FUNCTION_PTR Parser::Parse_FunctionContent(void) |
136 | 136 | { |
137 | | - FUNCTION_PTR ptr = (FUNCTION_PTR)POV_MALLOC(sizeof(FUNCTION), "Function ID"); |
| 137 | + FUNCTION_PTR ptr = new FUNCTION; |
138 | 138 | ExprNode *expression = nullptr; |
139 | 139 | FunctionCode function; |
140 | 140 |
|
@@ -212,7 +212,7 @@ void Parser::Parse_FunctionOrContentList(GenericScalarFunctionPtr* apFn, unsigne |
212 | 212 |
|
213 | 213 | FUNCTION_PTR Parser::Parse_DeclareFunction(TokenId *token_id, const char *fn_name, bool is_local) |
214 | 214 | { |
215 | | - FUNCTION_PTR ptr = (FUNCTION_PTR)POV_MALLOC(sizeof(FUNCTION), "Function ID"); |
| 215 | + FUNCTION_PTR ptr = new FUNCTION; |
216 | 216 | ExprNode *expression = nullptr; |
217 | 217 | FunctionCode function; |
218 | 218 |
|
|
0 commit comments