[Libreoffice-commits] core.git: canvas/source dbaccess/source oox/source reportdesign/source slideshow/source

Thorsten Behrens thb at documentfoundation.org
Fri Aug 29 02:58:48 PDT 2014


Jörg Sonnenberger wrote:
> +        SurfaceSharedPtr surface(mpOwningSpriteCanvas->getBufferSurface());
>          ::std::for_each( aUncoveredAreas.begin(),
>                           aUncoveredAreas.end(),
>                           ::boost::bind( &repaintBackground,
>                                          boost::cref(pCompositingCairo),
> -                                        boost::cref(mpOwningSpriteCanvas->getBufferSurface()),
> +                                        boost::cref(surface),
>                                          _1 ) );
>
If you need a local variable anyway - why not insted getting rid of
the boost::cref and pass the parameter by value in the first place?

e.g. , mpOwningSpriteCanvas->getBufferSurface(), _1 ... ?

Cheers,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140829/3a5fd965/attachment.sig>


More information about the LibreOffice mailing list