X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferlist.C;h=ecfcb4945aee23100197efc12214d222191c1b52;hb=31b56dac8042735f75229ad480b3e98531c181ff;hp=5720356deb12f6ff41c34be385f7ec59f44b2f0e;hpb=47910a7a67b9d49ccf410cc9e8d52ab89458dd56;p=lyx.git diff --git a/src/bufferlist.C b/src/bufferlist.C index 5720356deb..ecfcb4945a 100644 --- a/src/bufferlist.C +++ b/src/bufferlist.C @@ -4,9 +4,9 @@ * LyX, The Document Word Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * - * This file is Copyright 1996-2000 + * This file is Copyright 1996-2001 * Lars Gullik Bjønnes * * ====================================================== @@ -287,7 +287,10 @@ void BufferList::emergencyWriteAll() void BufferList::emergencyWrite(Buffer * buf) { - assert(buf); // use c assert to avoid a loop + // assert(buf) // this is not good since C assert takes an int + // and a pointer is a long (JMarc) + assert(buf != 0); // use c assert to avoid a loop + // No need to save if the buffer has not changed. if (buf->isLyxClean()) return;