X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcommand.C;h=ff206e63e54f2000a521dde72c6d92b71800f9eb;hb=75c5c8c9e51469822100d70a1ead0d7f8d3f69de;hp=437924d0acb2a6a69c9eabddea8dffcfec19b503;hpb=2a7aef61f0871670bff646e360b0cd6ad5a9dc21;p=lyx.git diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index 437924d0ac..ff206e63e5 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -89,9 +89,9 @@ void InsetCommand::Draw(LyXFont font, LyXScreen & scr, // In lyxf3 this will be just LaTeX -void InsetCommand::Write(FILE * file) +void InsetCommand::Write(ostream & os) { - fprintf(file, "LatexCommand %s\n", getCommand().c_str()); + os << "LatexCommand " << getCommand() << "\n"; } @@ -169,9 +169,9 @@ void InsetCommand::Read(LyXLex & lex) } -int InsetCommand::Latex(FILE * file, signed char /*fragile*/) +int InsetCommand::Latex(ostream & os, signed char /*fragile*/) { - fprintf(file, "%s", getCommand().c_str()); + os << getCommand(); return 0; }