[PATCH] Add override specifier

Richard Kimberly Heck rikiheck at lyx.org
Mon Oct 5 17:27:15 UTC 2020


On 10/5/20 12:19 PM, Jean-Marc Lasgouttes wrote:
> Le 05/10/2020 à 17:50, José Abílio Matos a écrit :
>> On Monday, October 5, 2020 2:13:35 PM WEST Jean-Marc Lasgouttes wrote:
>>> Yes, clang 10 does
>>>
>>> JMarc
>>
>> BTW compiling with clang 11 and without changing the compile flags I
>> get lots
>> (in the tens) of warnings like this:
>>
>> /home/jamatos/lyx/lyx/src/insets/InsetTabular.h:92:7: warning:
>> definition of
>> implicit copy constructor for 'InsetTableCell' is deprecated because
>> it has a
>> user-declared copy assignment operator [-Wdeprecated-copy]
>>          void operator=(InsetTableCell const &);
>
> Fixed ;)
>
> JMarc
>
> PS: yes, a proper fix will be eventually required, but I do not really
> know what we should do.

I'm actually not sure why the assignment operator is made unavailable,
but attached is a suitable patch, I think.

Riki



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Explicit-InsetTableCell-copy-constructor.patch
Type: text/x-patch
Size: 1602 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201005/10819a40/attachment.bin>


More information about the lyx-devel mailing list