]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
In for a penny, in for a pound. Consistent use of // -*- C++ -*-
[lyx.git] / src / bufferlist.C
index 5720356deb12f6ff41c34be385f7ec59f44b2f0e..ecfcb4945aee23100197efc12214d222191c1b52 100644 (file)
@@ -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;