Re: Cryptic warning in insettext.C

2000-11-03 Thread Andre Poenitz
> passing a temporary to a function taking a reference (or a pointer for > that matter) is suspect There is conceptually no problem in creating a temporary, passing a _nonconst_ reference this to a function (that may change that temporary) and throwing away the (possibly changed) temporary if one

Re: Cryptic warning in insettext.C

2000-11-03 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Not very cryptic... I should have written: "I am too lazy to figure out what it means" :) JMarc

Re: Cryptic warning in insettext.C

2000-11-03 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Here it is (in Juergen's latest changes): | | cxx: Warning: ../../../lyx-devel/src/insets/insettext.C, line 599: temporary | used for initial value of reference to non-const (anachronism) | Inset * inset = bv->checkInsetHit(TEXT(bv

Cryptic warning in insettext.C

2000-11-02 Thread Jean-Marc Lasgouttes
Here it is (in Juergen's latest changes): cxx: Warning: ../../../lyx-devel/src/insets/insettext.C, line 599: temporary used for initial value of reference to non-const (anachronism) Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y-TEXT(bv)->first, --