1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

Make some globals const

This commit is contained in:
Nick Wellnhofer
2024-04-28 17:32:35 +02:00
parent 577fb0e380
commit 63ce5f9aed
3 changed files with 26 additions and 26 deletions

View File

@@ -224,7 +224,7 @@ xmlXPathIsInf(double val) {
* the test should just be name[0] = ' '
*/
static xmlNs xmlXPathXMLNamespaceStruct = {
static const xmlNs xmlXPathXMLNamespaceStruct = {
NULL,
XML_NAMESPACE_DECL,
XML_XML_NAMESPACE,
@@ -232,7 +232,7 @@ static xmlNs xmlXPathXMLNamespaceStruct = {
NULL,
NULL
};
static xmlNsPtr xmlXPathXMLNamespace = &xmlXPathXMLNamespaceStruct;
static const xmlNs *const xmlXPathXMLNamespace = &xmlXPathXMLNamespaceStruct;
#ifndef LIBXML_THREAD_ENABLED
/*
* Optimizer is disabled only when threaded apps are detected while