overloaded virtual function in InsetCounter and InsetCommand

Richard Kimberly Heck rikiheck at lyx.org
Thu Jul 9 07:27:50 UTC 2020


On 7/9/20 2:16 AM, Stephan Witt wrote:
> Hi Thibaut,
>
> thank you for your work on docbook for LyX.
>
> With clang on Mac I’m getting these warnings:

Fixed I think.

Riki





>
> In file included from /Users/stephan/git/lyx/src/insets/InsetCommandParams.cpp:23:
> /Users/stephan/git/lyx/src/insets/InsetCounter.h:42:7: warning: 'lyx::InsetCounter::docbook' hides overloaded virtual function [-Woverloaded-virtual]
>         void docbook(odocstream &, OutputParams const &) const;
>              ^
> /Users/stephan/git/lyx/src/insets/InsetCommand.h:92:7: note: hidden overloaded virtual function 'lyx::InsetCommand::docbook' declared here: type mismatch at 1st parameter ('lyx::XMLStream &' vs
>       'lyx::odocstream &' (aka 'basic_ostream<wchar_t, char_traits<wchar_t> > &'))
>         void docbook(XMLStream &, OutputParams const &) const;
>              ^
> In file included from /Users/stephan/git/lyx/src/insets/InsetCounter.cpp:12:
> /Users/stephan/git/lyx/src/insets/InsetCounter.h:42:7: warning: 'lyx::InsetCounter::docbook' hides overloaded virtual function [-Woverloaded-virtual]
>         void docbook(odocstream &, OutputParams const &) const;
>              ^
> /Users/stephan/git/lyx/src/insets/InsetCommand.h:92:7: note: hidden overloaded virtual function 'lyx::InsetCommand::docbook' declared here: type mismatch at 1st parameter ('lyx::XMLStream &' vs
>       'lyx::odocstream &' (aka 'basic_ostream<wchar_t, char_traits<wchar_t> > &'))
>         void docbook(XMLStream &, OutputParams const &) const;
>              ^
>
> Regards,
> Stephan




More information about the lyx-devel mailing list