Re: [opensource-dev] LLSingleton class question.

2011-12-02 Thread Oz Linden (Scott Lawrence)
On 2011-11-19 23:48, lists.secondlife@trap.wereanimal.net wrote: > Hi all. > > In the LLSingleton header, there is a comment: > > // Reference version of getInstance() > // Preferred over getInstance() as it disallows checking for NULL > > My question is, is there a difference between > MyClass

[opensource-dev] LLSingleton class question.

2011-11-19 Thread lists . secondlife . com
Hi all. In the LLSingleton header, there is a comment: // Reference version of getInstance() // Preferred over getInstance() as it disallows checking for NULL My question is, is there a difference between MyClass::instance()->someFunction(); and MyClass::getInstance()->someFunction(); ? If not,