New warning (or at least I only noticed it now)

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Nov 21 11:00:59 UTC 2022


Le 21/11/2022 à 11:17, Pavel Sanda a écrit :
> On Mon, Nov 21, 2022 at 10:09:15AM +0100, Jean-Marc Lasgouttes wrote:
>> I cannot really understand what the destroyed temporary is.
> 
> Don't we create and return temp at GuiApplication.cpp:3695 ?
> If you look above at theFontLoader (GuiApplication.cpp 3689)
> we do similar logic but we reserve font_loader_ for the construct.

If it was in GuiApplication, the warning will be there, wouldn't it? And 
it seems to me that addresses are consistently returned, which point to 
an array cell (which s not going away).

 > Or we could stop use & so copy happens.

I am not sure that we would want that.

JMarc


More information about the lyx-devel mailing list