summaryrefslogtreecommitdiff
path: root/src/KM_xml.cpp
diff options
context:
space:
mode:
authormilla <marc.illa@dolby.com>2021-05-27 12:20:05 +0200
committermilla <marc.illa@dolby.com>2021-06-03 14:21:33 +0200
commit9c6e1bc188987558e64f72f1561749ccd20b5379 (patch)
tree649c4f28b8ec7db3f256bb520ed6b5786a2315be /src/KM_xml.cpp
parentf9d7fbc33aa571c547d916b145712469efd9f4b8 (diff)
Do not export symbols on definitions in cpp. (moved functions and classes to an unnamed namespace and made variables static)
Diffstat (limited to 'src/KM_xml.cpp')
-rw-r--r--src/KM_xml.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/KM_xml.cpp b/src/KM_xml.cpp
index 5037391..73ff8b5 100644
--- a/src/KM_xml.cpp
+++ b/src/KM_xml.cpp
@@ -74,20 +74,21 @@ extern "C"
using namespace Kumu;
-
-class ns_map : public std::map<std::string, XMLNamespace*>
-{
-public:
- ~ns_map()
+namespace{
+ class ns_map : public std::map<std::string, XMLNamespace*>
{
- while ( ! empty() )
- {
- ns_map::iterator ni = begin();
- delete ni->second;
- erase(ni);
- }
- }
-};
+ public:
+ ~ns_map()
+ {
+ while ( ! empty() )
+ {
+ ns_map::iterator ni = begin();
+ delete ni->second;
+ erase(ni);
+ }
+ }
+ };
+}
Kumu::XMLElement::XMLElement(const char* name) : m_Namespace(0), m_NamespaceOwner(0)