diff options
| author | John Hurst <jhurst@cinecert.com> | 2021-08-26 20:43:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 20:43:24 -0700 |
| commit | 53e27f364c39cd70e34c05aeab4afcbeaf116b49 (patch) | |
| tree | fce9f1483259c402e569a45340faf75c3317a13a /src/KM_xml.cpp | |
| parent | b8c87905046423d7f04e9103ffb321a4d23870eb (diff) | |
| parent | 9c6e1bc188987558e64f72f1561749ccd20b5379 (diff) | |
Merge pull request #11 from DolbyLaboratories/dolby/atmos_storage/asdcplib_integration/dont_export_symbols
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.cpp | 27 |
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) |
