]> www.ginac.de Git - ginac.git/blobdiff - ginac/class_info.h
Replace use of NULL by C++11 nullptr.
[ginac.git] / ginac / class_info.h
index 588a73b9c6a21375d9d5fa763ef609d411604d7f..1d3ed3d21b20d0fa4f43466e3152e60ff90b0a3d 100644 (file)
@@ -40,13 +40,13 @@ namespace GiNaC {
 template <class OPT>
 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<OPT>::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<tree_node>::iterator i = tree.begin(); i != tree.end(); ++i) {
                class_info *p = i->info->get_parent();
                if (p) {
@@ -190,7 +190,7 @@ void class_info<OPT>::identify_parents()
        }
 }
 
-template <class OPT> class_info<OPT> *class_info<OPT>::first = NULL;
+template <class OPT> class_info<OPT> *class_info<OPT>::first = nullptr;
 template <class OPT> bool class_info<OPT>::parents_identified = false;
 
 } // namespace GiNaC