MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / DeleteAttribute

Method DeleteAttribute

externals/tinyxml2/tinyxml2.cpp:1940–1956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1938
1939
1940void XMLElement::DeleteAttribute( const char* name )
1941{
1942 XMLAttribute* prev = 0;
1943 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1944 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1945 if ( prev ) {
1946 prev->_next = a->_next;
1947 }
1948 else {
1949 _rootAttribute = a->_next;
1950 }
1951 DeleteAttribute( a );
1952 break;
1953 }
1954 prev = a;
1955 }
1956}
1957
1958
1959char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr )

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
NameMethod · 0.80
FreeMethod · 0.80

Tested by

no test coverage detected