X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferList.cpp;h=c95616907a2f6cb9069eba5f97be1f34fceac521;hb=5183c380b7c9a3b773b289e4e97a932f34a9f091;hp=94fd6a728fd367c1568262e51b5022ac3caa4d91;hpb=72b0b23590d119ec8dd4156dab2fe3f04cab7bd4;p=lyx.git diff --git a/src/BufferList.cpp b/src/BufferList.cpp index 94fd6a728f..c95616907a 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -29,6 +29,7 @@ #include "support/lstrings.h" #include "support/Package.h" +#include #include #include @@ -95,7 +96,8 @@ void BufferList::release(Buffer * buf) Buffer * BufferList::newBuffer(string const & s, bool const ronly) { auto_ptr tmpbuf; - try { tmpbuf.reset(new Buffer(s, ronly)); + try { + tmpbuf.reset(new Buffer(s, ronly)); } catch (ExceptionMessage const & message) { if (message.type_ == ErrorException) { Alert::error(message.title_, message.details_);