summaryrefslogtreecommitdiff
path: root/icespider/xslt/exslt-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'icespider/xslt/exslt-init.cpp')
-rw-r--r--icespider/xslt/exslt-init.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/icespider/xslt/exslt-init.cpp b/icespider/xslt/exslt-init.cpp
index 110a999..55b2407 100644
--- a/icespider/xslt/exslt-init.cpp
+++ b/icespider/xslt/exslt-init.cpp
@@ -2,23 +2,25 @@
#include <libxml/parser.h>
#include <libxslt/xslt.h>
-static void initLibXml() __attribute__((constructor(102)));
+namespace {
+ void initLibXml() __attribute__((constructor(102)));
-void
-initLibXml()
-{
- xmlInitParser();
- exsltRegisterAll();
-}
+ void
+ initLibXml()
+ {
+ xmlInitParser();
+ exsltRegisterAll();
+ }
-// LCOV_EXCL_START lcov actually misses destructor functions
-static void cleanupLibXml() __attribute__((destructor(102)));
+ // LCOV_EXCL_START lcov actually misses destructor functions
+ static void cleanupLibXml() __attribute__((destructor(102)));
-void
-cleanupLibXml()
-{
- xsltCleanupGlobals();
- xmlCleanupParser();
-}
+ void
+ cleanupLibXml()
+ {
+ xsltCleanupGlobals();
+ xmlCleanupParser();
+ }
-// LCOV_EXCL_STOP
+ // LCOV_EXCL_STOP
+}