MCPcopy Create free account
hub / github.com/KDE/kdevelop / deleteContainer

Method deleteContainer

plugins/astyle/3rdparty/libastyle/ASFormatter.cpp:5457–5465  ·  view source on GitHub ↗

* delete a braceTypeStack vector object * BraceTypeStack did not work with the DeleteContainer template */

Source from the content-addressed store, hash-verified

5455 * BraceTypeStack did not work with the DeleteContainer template
5456 */
5457void ASFormatter::deleteContainer(vector<BraceType>*& container)
5458{
5459 if (container != nullptr)
5460 {
5461 container->clear();
5462 delete (container);
5463 container = nullptr;
5464 }
5465}
5466
5467/**
5468 * delete a vector object

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected