On Fri, Oct 06, 2006 at 10:52:31PM +0200, Abdelrazak Younes wrote:
> If you prefer I can add this as a helper function in some 
> theFontLoader.h header:
> 
> #include "frontends/Application.h"
> #include "frontends/FontLoader.h"
> 
> FontLoader & theFontLoader()
> {
>       return theApp->fontLoader();
> }

Hm, why not directly in FontLoader.h:

 FontLoader & theFontLoader();

and in FontLoader.C (or even, *gosh*, in Application.C):

 FontLoader & theFontLoader()
 {
         return theApp->fontLoader();
 }

This way I'd get my 'theFontLoader' without an extra include or extra
file and you' get al the singletons bundled in theApp.

Andre'

Reply via email to