X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.h;h=89383bc76ab3bc261b33c1a0966ce281908d3a45;hb=861c6167ca5f1329e16dd788489a7c03772e2332;hp=536dcc17a6a9321b3226e747dbae9c77aed57ac7;hpb=51aebc9327345f6ea065035f489dbfec1568279f;p=lyx.git diff --git a/src/Counters.h b/src/Counters.h index 536dcc17a6..89383bc76a 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -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(); } ///