]> www.ginac.de Git - ginac.git/blobdiff - ginac/basic.cpp
Replace use of NULL by C++11 nullptr.
[ginac.git] / ginac / basic.cpp
index 79d83b555d5fea54e0e814faacd593eb012ee58b..563dd7d5b6455fe9453885111bb0aac7a4259ed9 100644 (file)
@@ -297,12 +297,12 @@ ex basic::map(map_function & f) const
        if (num == 0)
                return *this;
 
-       basic *copy = NULL;
+       basic *copy = nullptr;
        for (size_t i=0; i<num; i++) {
                const ex & o = op(i);
                const ex & n = f(o);
                if (!are_ex_trivially_equal(o, n)) {
-                       if (copy == NULL)
+                       if (copy == nullptr)
                                copy = duplicate();
                        copy->let_op(i) = n;
                }