mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
parent
6675601147
commit
7b15ea393f
@ -2751,9 +2751,13 @@ bool GuiView::closeWorkArea(GuiWorkArea * wa)
|
||||
bool GuiView::closeBuffer()
|
||||
{
|
||||
GuiWorkArea * wa = currentMainWorkArea();
|
||||
// coverity complained about this
|
||||
// it seems unnecessary, but perhaps is worth the check
|
||||
LASSERT(wa, return false);
|
||||
|
||||
setCurrentWorkArea(wa);
|
||||
Buffer & buf = wa->bufferView().buffer();
|
||||
return wa && closeWorkArea(wa, !buf.parent());
|
||||
return closeWorkArea(wa, !buf.parent());
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,7 +52,8 @@ class InGuiThread : private IntoGuiThreadMover
|
||||
{
|
||||
public:
|
||||
|
||||
InGuiThread() {}
|
||||
// please coverity by explicitly initalizing this variable.
|
||||
InGuiThread() : return_value_(R()) {}
|
||||
|
||||
template<class F>
|
||||
R call(F f)
|
||||
|
Loading…
Reference in New Issue
Block a user