Andre Poenitz wrote:
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.
Hum... indeed this looks sane and doesn't seem to conflict with the
minimal dependency goal that Lars asked for. But I am not sure it won't
conflict with the Application_pimpl. I'll try, thanks for the idea.
Abdel.