X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_plaintext.cpp;h=97e3ab11270c5fab649507d74e8ae2a679c32a88;hb=4df7d8ab1ae443119057562fb76c2e438c053eef;hp=09d7a3847cbeedf87230b3c00b8b6d6a6491bb65;hpb=a01cb111a07717a337c18860216359cdbe22af3c;p=lyx.git diff --git a/src/output_plaintext.cpp b/src/output_plaintext.cpp index 09d7a3847c..97e3ab1127 100644 --- a/src/output_plaintext.cpp +++ b/src/output_plaintext.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -34,7 +34,7 @@ namespace lyx { void writePlaintextFile(Buffer const & buf, FileName const & fname, OutputParams const & runparams) { - odocfstream ofs; + ofdocstream ofs; if (!openFileWrite(ofs, fname)) return; writePlaintextFile(buf, ofs, runparams); @@ -45,7 +45,7 @@ void writePlaintextFile(Buffer const & buf, odocstream & os, OutputParams const & runparams) { bool ref_printed = false; - ParagraphList const par = buf.paragraphs(); + ParagraphList const & par = buf.paragraphs(); ParagraphList::const_iterator beg = par.begin(); ParagraphList::const_iterator end = par.end(); ParagraphList::const_iterator it = beg; @@ -210,7 +210,7 @@ void writePlaintextParagraph(Buffer const & buf, break; case '\0': - LYXERR(Debug::INFO, "writePlaintextFile: NULL char in structure."); + LYXERR(Debug::INFO, "writePlaintextFile: NUL char in structure."); break; default: