Skip to content

Commit 3303c15

Browse files
committed
Make some pointers const in php_dom.h
1 parent dd79502 commit 3303c15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/dom/php_dom.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static zend_always_inline bool php_dom_is_cache_tag_stale_from_doc_ptr(const php
235235
return php_libxml_is_cache_tag_stale(cache_tag, &doc_ptr->cache_tag);
236236
}
237237

238-
static zend_always_inline bool php_dom_is_cache_tag_stale_from_node(const php_libxml_cache_tag *cache_tag, const xmlNodePtr node)
238+
static zend_always_inline bool php_dom_is_cache_tag_stale_from_node(const php_libxml_cache_tag *cache_tag, const xmlNode *node)
239239
{
240240
ZEND_ASSERT(node != NULL);
241241
php_libxml_node_ptr *_private = node->_private;
@@ -249,7 +249,7 @@ static zend_always_inline bool php_dom_is_cache_tag_stale_from_node(const php_li
249249
return php_dom_is_cache_tag_stale_from_doc_ptr(cache_tag, object_private->document);
250250
}
251251

252-
static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_node(php_libxml_cache_tag *cache_tag, const xmlNodePtr node)
252+
static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_node(php_libxml_cache_tag *cache_tag, const xmlNode *node)
253253
{
254254
ZEND_ASSERT(cache_tag != NULL);
255255
php_libxml_node_ptr *_private = node->_private;
@@ -261,7 +261,7 @@ static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_node(php_l
261261
}
262262
}
263263

264-
static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_doc_ref(php_libxml_cache_tag *cache_tag, php_libxml_ref_obj *document)
264+
static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_doc_ref(php_libxml_cache_tag *cache_tag, const php_libxml_ref_obj *document)
265265
{
266266
ZEND_ASSERT(cache_tag != NULL);
267267
ZEND_ASSERT(document != NULL);

0 commit comments

Comments
 (0)