X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fclass_info.h;h=1d3ed3d21b20d0fa4f43466e3152e60ff90b0a3d;hp=588a73b9c6a21375d9d5fa763ef609d411604d7f;hb=acae7ab5a4dc94d1f54ba794f32f5764cdb4d704;hpb=7d2c44606a17c76f6bec520c22eba96fa5875961 diff --git a/ginac/class_info.h b/ginac/class_info.h index 588a73b9..1d3ed3d2 100644 --- a/ginac/class_info.h +++ b/ginac/class_info.h @@ -40,13 +40,13 @@ namespace GiNaC { template class class_info { public: - class_info(const OPT & o) : options(o), next(first), parent(NULL) + class_info(const OPT & o) : options(o), next(first), parent(nullptr) { first = this; parents_identified = false; } - /** Get pointer to class_info of parent class (or NULL). */ + /** Get pointer to class_info of parent class (or nullptr). */ class_info *get_parent() const { identify_parents(); @@ -155,7 +155,7 @@ void class_info::dump_hierarchy(bool verbose) tree.push_back(tree_node(p)); // Identify children for all nodes and find the root - tree_node *root = NULL; + tree_node *root = nullptr; for (typename std::vector::iterator i = tree.begin(); i != tree.end(); ++i) { class_info *p = i->info->get_parent(); if (p) { @@ -190,7 +190,7 @@ void class_info::identify_parents() } } -template class_info *class_info::first = NULL; +template class_info *class_info::first = nullptr; template bool class_info::parents_identified = false; } // namespace GiNaC