X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseterror.C;h=74c0cc7c793e953d00f6ba05b5fcd0af1f5a4562;hb=5f3f9ad231bc0c24d34c00e3936e226d9834589a;hp=61afb4717ab9fc27cf71cc58446d7d20332468c4;hpb=188833d864794c9c1ec42a8361b93aaa718874ea;p=lyx.git diff --git a/src/insets/inseterror.C b/src/insets/inseterror.C index 61afb4717a..74c0cc7c79 100644 --- a/src/insets/inseterror.C +++ b/src/insets/inseterror.C @@ -26,6 +26,7 @@ InsetError::InsetError() form = 0; } + InsetError::InsetError(string const & str) : contents(str) { @@ -88,16 +89,17 @@ void InsetError::Draw(LyXFont font, LyXScreen & scr, } -void InsetError::Write(FILE *) +void InsetError::Write(ostream &) { } + void InsetError::Read(LyXLex &) { } -int InsetError::Latex(FILE *, signed char /*fragile*/) +int InsetError::Latex(ostream &, signed char /*fragile*/) { return 0; } @@ -181,8 +183,7 @@ void InsetError::Edit(int, int) } -Inset * InsetError::Clone() +Inset * InsetError::Clone() const { - InsetError * result = new InsetError(contents); - return result; + return new InsetError(contents); }