openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damjan Jovanovic <dam...@apache.org>
Subject Re: AOO Design Patterns
Date Sun, 10 Apr 2016 18:47:47 GMT
Hi Lalith

It looks like SbxErrObject is a singleton: if you read errobject.cxx,
you see that SbxErrObject::getErrObject() returns a single static
instance.

Why are you reading the main/basic code by the way? Would you like to
contribute a patch?

Damjan

On Sun, Mar 27, 2016 at 8:48 PM, Lalith Ramesh
<lalithramesh312@gmail.com> wrote:
> Dev List,
>
> I was browsing through the code on Fisheye, and I noticed some interesting
> design patterns that were in use.
> For example, errobject.hxx has a public factory method to make new
> ErrObjects, but the constructors are not marked as public.
> What was the motivation behind this design decision?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message