diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-05 10:25:43 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-06 12:06:30 +0200 |
commit | 8fdb37119f6db7f7fa5af1644e15347f17e5968e (patch) | |
tree | a45d779da39ae6b3e24519b3cb55fa12260bf0ec /vcl/unx/generic/fontmanager | |
parent | ede39d78282484650796456327a35a879a475cef (diff) |
Add GlyphCache instance to GenericUnixSalData
This gets rid of some statics and drops some duplicate code:
- the X11 based GlyphCache => gone
- the svp version of the GlyphCache => gone
- the "normal" GlyphCache
- the PrintFontManager
And while at it move the implementation into its own file
gendata.cxx.
Change-Id: I9063139c9482f5f37285505f389cf5f32c02426b
Reviewed-on: https://gerrit.libreoffice.org/61454
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/unx/generic/fontmanager')
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index abd2c6c30232..7ea19def9e67 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -111,30 +111,14 @@ PrintFontManager::PrintFont::PrintFont() { } -GenericUnixSalData::GenericUnixSalData(GenericUnixSalDataType const t, SalInstance *const pInstance) - : m_eType(t), m_pDisplay(nullptr) -{ - m_pInstance = pInstance; SetSalData(this); -} - -GenericUnixSalData::~GenericUnixSalData() -{ -} - /* * one instance only */ PrintFontManager& PrintFontManager::get() { - GenericUnixSalData *const pSalData(GetGenericUnixSalData()); + GenericUnixSalData* const pSalData(GetGenericUnixSalData()); assert(pSalData); - - if (!pSalData->m_pPrintFontManager) - { - pSalData->m_pPrintFontManager.reset( new PrintFontManager ); - pSalData->m_pPrintFontManager->initialize(); - } - return *pSalData->m_pPrintFontManager; + return *pSalData->GetPrintFontManager(); } /* |