Kaydet (Commit) abbb137d authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

initialize caches in the constructor

Change-Id: I1aa89afcb5d399b653e270ae18342afa7103a680
üst 9fa568dc
...@@ -172,6 +172,7 @@ struct ImplSVAppData ...@@ -172,6 +172,7 @@ struct ImplSVAppData
struct ImplSVGDIData struct ImplSVGDIData
{ {
ImplSVGDIData();
~ImplSVGDIData(); ~ImplSVGDIData();
VclPtr<OutputDevice> mpFirstWinGraphics; // First OutputDevice with a Frame Graphics VclPtr<OutputDevice> mpFirstWinGraphics; // First OutputDevice with a Frame Graphics
...@@ -194,8 +195,8 @@ struct ImplSVGDIData ...@@ -194,8 +195,8 @@ struct ImplSVGDIData
long mnAppFontY = 0; // AppFont Y-Numenator for 80/tel Height long mnAppFontY = 0; // AppFont Y-Numenator for 80/tel Height
bool mbFontSubChanged = false; // true: FontSubstitution was changed between Begin/End bool mbFontSubChanged = false; // true: FontSubstitution was changed between Begin/End
o3tl::lru_map<OUString, BitmapEx> maThemeImageCache = o3tl::lru_map<OUString, BitmapEx>(10); o3tl::lru_map<OUString, BitmapEx> maThemeImageCache;
o3tl::lru_map<OUString, gfx::DrawRoot> maThemeDrawCommandsCache = o3tl::lru_map<OUString, gfx::DrawRoot>(50); o3tl::lru_map<OUString, gfx::DrawRoot> maThemeDrawCommandsCache;
}; };
struct ImplSVWinData struct ImplSVWinData
......
...@@ -279,7 +279,14 @@ void LocaleConfigurationListener::ConfigurationChanged( utl::ConfigurationBroadc ...@@ -279,7 +279,14 @@ void LocaleConfigurationListener::ConfigurationChanged( utl::ConfigurationBroadc
ImplSVData::~ImplSVData() {} ImplSVData::~ImplSVData() {}
ImplSVAppData::~ImplSVAppData() {} ImplSVAppData::~ImplSVAppData() {}
ImplSVGDIData::ImplSVGDIData()
: maThemeImageCache(10)
, maThemeDrawCommandsCache(50)
{}
ImplSVGDIData::~ImplSVGDIData() {} ImplSVGDIData::~ImplSVGDIData() {}
ImplSVWinData::~ImplSVWinData() {} ImplSVWinData::~ImplSVWinData() {}
ImplSVHelpData::~ImplSVHelpData() {} ImplSVHelpData::~ImplSVHelpData() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment