X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNewpage.cpp;h=85e8d14dd394d02539d1963015f389613f141ddf;hb=9914f21bceef9610bd1822f96eff0aa6d1a8df7c;hp=6a141df2d98be021cb5a6bac063a014c409b9927;hpb=1ef605f6254ef3f3b8cec5440a2e67e6f23a707b;p=lyx.git diff --git a/src/insets/InsetNewpage.cpp b/src/insets/InsetNewpage.cpp index 6a141df2d9..85e8d14dd3 100644 --- a/src/insets/InsetNewpage.cpp +++ b/src/insets/InsetNewpage.cpp @@ -213,7 +213,7 @@ ColorCode InsetNewpage::ColorName() const } -int InsetNewpage::latex(otexstream & os, OutputParams const &) const +void InsetNewpage::latex(otexstream & os, OutputParams const &) const { switch (params_.kind) { case InsetNewpageParams::NEWPAGE: @@ -232,7 +232,6 @@ int InsetNewpage::latex(otexstream & os, OutputParams const &) const os << "\\newpage{}"; break; } - return 0; } @@ -257,9 +256,9 @@ docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const } -docstring InsetNewpage::contextMenuName() const +string InsetNewpage::contextMenuName() const { - return from_ascii("context-newpage"); + return "context-newpage"; }