[LyX/master] Debug output for paragraph params.
Scott Kostyshak
skostysh at lyx.org
Thu Apr 9 00:20:46 UTC 2020
On Wed, Apr 08, 2020 at 11:03:56PM +0200, Richard Kimberly Heck wrote:
> commit eea4ef9b6e8c103b8d77fb456214a116c68f58a7
> Author: Richard Kimberly Heck <rikiheck at lyx.org>
> Date: Wed Apr 8 17:17:14 2020 -0400
>
> Debug output for paragraph params.
> ---
> src/ParagraphParameters.cpp | 6 ++++++
> src/ParagraphParameters.h | 3 +++
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/src/ParagraphParameters.cpp b/src/ParagraphParameters.cpp
> index 1152c6a..90c8705 100644
> --- a/src/ParagraphParameters.cpp
> +++ b/src/ParagraphParameters.cpp
> @@ -318,6 +318,12 @@ void params2string(Paragraph const & par, string & data)
> }
>
>
> +LyXErr & operator<<(LyXErr & os, ParagraphParameters const & parp) {
> + parp.write(os.stream());
> + return os;
> +}
> +
> +
> /*
> bool operator==(ParagraphParameeters const & ps1,
> ParagraphParameeters const & ps2)
> diff --git a/src/ParagraphParameters.h b/src/ParagraphParameters.h
> index f651068..a57b433 100644
> --- a/src/ParagraphParameters.h
> +++ b/src/ParagraphParameters.h
> @@ -18,6 +18,7 @@
> #include "Length.h"
> #include "Spacing.h"
>
> +#include "support/debug.h"
> #include "support/types.h"
> #include "support/docstring.h"
>
> @@ -38,6 +39,8 @@ public:
> ///
> ParagraphParameters();
> ///
> + friend LyXErr & operator<<(LyXErr & os, ParagraphParameters const & cur);
> + ///
What effect does the friend have? ParagraphParameters::write() is public.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200408/f1f65298/attachment.asc>
More information about the lyx-devel
mailing list