MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / DeleteNamespace

Method DeleteNamespace

xmpsdk/src/XMPMeta.cpp:1124–1136  ·  view source on GitHub ↗

class-static */

Source from the content-addressed store, hash-verified

1122// *** restricted to the object that introduced them.
1123
1124/* class-static */ void
1125XMPMeta::DeleteNamespace ( XMP_StringPtr namespaceURI )
1126{
1127 XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( namespaceURI );
1128 if ( uriPos == sNamespaceURIToPrefixMap->end() ) return;
1129
1130 XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( uriPos->second );
1131 if ( prefixPos == sNamespacePrefixToURIMap->end() ) return;
1132
1133 sNamespaceURIToPrefixMap->erase ( uriPos );
1134 sNamespacePrefixToURIMap->erase ( prefixPos );
1135
1136} // DeleteNamespace
1137
1138
1139// -------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected