]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.h
Track whether we have warned about mixing layouts across e.g. branches.
[lyx.git] / src / Counters.h
index 536dcc17a6a9321b3226e747dbae9c77aed57ac7..89383bc76ab3bc261b33c1a0966ce281908d3a45 100644 (file)
@@ -193,7 +193,7 @@ public:
        /// Also for updateBuffer().
        /// Call this when entering things like footnotes, where there is now
        /// no "last layout" and we want to restore the "last layout" on exit.
-       void clearLastLayout() { layout_stack_.push_back(0); }
+       void clearLastLayout() { layout_stack_.push_back(nullptr); }
        /// Call this when exiting things like footnotes.
        void restoreLastLayout() { layout_stack_.pop_back(); }
        ///