X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.h;h=89383bc76ab3bc261b33c1a0966ce281908d3a45;hb=38a46b43c764eb7724936fca92678c3563156cd1;hp=536dcc17a6a9321b3226e747dbae9c77aed57ac7;hpb=f5f2f5b7eaca90ba9bbddee3cea54708c9b98a36;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(); } ///