Re: Question about class DrawingML

2020-07-01 Thread Regina Henschel

Hi Stephan,

thank you.

Kind regards
Regina

Stephan Bergmann schrieb am 01-Jul-20 um 13:43:

On 01/07/2020 13:38, Regina Henschel wrote:

Is it possible to set a default value for a parameter
const css::uno::Reference< css::beans::XPropertySet >& rXShapePropSet


   const css::uno::Reference< css::beans::XPropertySet >& rXShapePropSet 
= {}



so that a caller can omit it, if it is not needed in his case?


will pass an empty Reference when none is specified

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Question about class DrawingML

2020-07-01 Thread Stephan Bergmann

On 01/07/2020 13:38, Regina Henschel wrote:

Is it possible to set a default value for a parameter
const css::uno::Reference< css::beans::XPropertySet >& rXShapePropSet


  const css::uno::Reference< css::beans::XPropertySet >& rXShapePropSet 
= {}



so that a caller can omit it, if it is not needed in his case?


will pass an empty Reference when none is specified

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Question about class DrawingML

2020-07-01 Thread Regina Henschel

Hi,

Noel Grandin schrieb am 29-Jun-20 um 18:01:



On Mon, 29 Jun 2020 at 13:14, Regina Henschel > wrote:


(1) add a member to class DrawingML
(2) extend the parameter lists in the calling chain


extending the parameter list is generally a better idea because it 
limits the scope of the extra information


Is it possible to set a default value for a parameter
const css::uno::Reference< css::beans::XPropertySet >& rXShapePropSet

so that a caller can omit it, if it is not needed in his case?

Kind regards
Regina
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Question about class DrawingML

2020-06-29 Thread Noel Grandin
On Mon, 29 Jun 2020 at 13:14, Regina Henschel 
wrote:

> (1) add a member to class DrawingML
> (2) extend the parameter lists in the calling chain
>
>
extending the parameter list is generally a better idea because it limits
the scope of the extra information

Lots of programming design is about limiting the scope of information,
because the more information "in scope" at a given point in a program, the
more things we have to worry about. :-)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice