]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
* GuiView.cpp:
[lyx.git] / src / Buffer.cpp
index 84341b3920e384da60e2e1f20bfeceae310f6ae3..63f578f03b5fdb152b5923ee00a2b0abdc70beff 100644 (file)
@@ -286,7 +286,7 @@ Buffer::~Buffer()
        }
 
        // Remove any previewed LaTeX snippets associated with this buffer.
-       thePreviews()->removeLoader(*this);
+       thePreviews().removeLoader(*this);
 
        delete d;
 }
@@ -991,7 +991,7 @@ bool Buffer::makeLaTeXFile(FileName const & fname,
        }
        catch (...) {
                lyxerr << "Caught some really weird exception..." << endl;
-               LyX::cref().exit(1);
+               lyx_exit(1);
        }
 
        ofs.close();