On Mon, Nov 22, 2004 at 08:50:52AM +0100, Juergen Spitzmueller wrote:
> Andre Poenitz wrote:
> > I think I saw some code similar to
> >
> >    void foo(LyXLength len);
> >
> > This should be
> >
> >    void foo(LyXLength const & len);
> 
> Corrected in the attached patch. I will commit this if I hear no more 
> objections.

'foo(LyXLength())' is fine if the function is declared as
void foo(LyXLength const & len);' 

There is no need to write this as 

        LyXLength len;
        foo(len);

Andre'

Reply via email to