Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF1931806B for ; Sun, 10 Apr 2016 18:48:09 +0000 (UTC) Received: (qmail 1008 invoked by uid 500); 10 Apr 2016 18:48:09 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 940 invoked by uid 500); 10 Apr 2016 18:48:09 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 929 invoked by uid 99); 10 Apr 2016 18:48:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Apr 2016 18:48:09 +0000 Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 1ADD91A00E4 for ; Sun, 10 Apr 2016 18:48:08 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id j11so130845220lfb.1 for ; Sun, 10 Apr 2016 11:48:08 -0700 (PDT) X-Gm-Message-State: AD7BkJLCPfzYjoQI1AdBULHfTxzLONx7MtaaoON6Oo3y3PFrcDkGml+iAr/tuBLI5iORFDJN8fPd+wJJ++xxlw== X-Received: by 10.25.21.166 with SMTP id 38mr7278180lfv.160.1460314087504; Sun, 10 Apr 2016 11:48:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.35.145 with HTTP; Sun, 10 Apr 2016 11:47:47 -0700 (PDT) In-Reply-To: References: From: Damjan Jovanovic Date: Sun, 10 Apr 2016 20:47:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: AOO Design Patterns To: Apache OO Content-Type: text/plain; charset=UTF-8 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 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