]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Now that Text knows its owner, use the associated Buffer access.
[features.git] / src / Buffer.cpp
index 8dd228b5b90a3986ad758f49c8c35982e6523eef..48c528fde4af3c46c5c0ad3de97317b1a6e69141 100644 (file)
@@ -690,7 +690,7 @@ bool Buffer::readDocument(Lexer & lex)
        }
 
        // read main text
-       bool const res = text().read(*this, lex, errorList, d->inset);
+       bool const res = text().read(lex, errorList, d->inset);
 
        updateMacros();
        updateMacroInstances();
@@ -1028,7 +1028,7 @@ bool Buffer::write(ostream & ofs) const
 
        // write the text
        ofs << "\n\\begin_body\n";
-       text().write(*this, ofs);
+       text().write(ofs);
        ofs << "\n\\end_body\n";
 
        // Write marker that shows file is complete