Skip to content

Commit f778a3e

Browse files
committed
ext/tidy: simplify tidy_instantiate
1 parent ac3eb67 commit f778a3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/tidy/tidy.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static zend_string *php_tidy_file_to_mem(const char *, bool);
124124
static void tidy_object_free_storage(zend_object *);
125125
static zend_object *tidy_object_new_node(zend_class_entry *);
126126
static zend_object *tidy_object_new_doc(zend_class_entry *);
127-
static zval *tidy_instantiate(zend_class_entry *, zval *);
127+
static void tidy_instantiate(zend_class_entry *, zval *);
128128
static zend_result tidy_doc_cast_handler(zend_object *, zval *, int);
129129
static zend_result tidy_node_cast_handler(zend_object *, zval *, int);
130130
static void tidy_doc_update_properties(PHPTidyObj *);
@@ -469,10 +469,9 @@ static zend_object *tidy_object_new_doc(zend_class_entry *class_type)
469469
return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc);
470470
}
471471

472-
static zval *tidy_instantiate(zend_class_entry *pce, zval *object)
472+
static void tidy_instantiate(zend_class_entry *pce, zval *object)
473473
{
474474
object_init_ex(object, pce);
475-
return object;
476475
}
477476

478477
static zend_result tidy_doc_cast_handler(zend_object *in, zval *out, int type)

0 commit comments

Comments
 (0)