mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Switched map/hash_map/set for caching to unordered_map/unordered_set.
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
|
||||
#include "Meter.h"
|
||||
#include "Measure.h"
|
||||
#include <unordered_map>
|
||||
|
||||
namespace Gdiplus
|
||||
{
|
||||
@ -103,8 +104,8 @@ private:
|
||||
static std::wstring FontFaceToString(const std::wstring& fontFace, Gdiplus::PrivateFontCollection* collection);
|
||||
static std::wstring FontPropertiesToString(Gdiplus::REAL size, Gdiplus::FontStyle style);
|
||||
|
||||
static std::map<std::wstring, Gdiplus::FontFamily*> c_FontFamilies; // Cache for the font families
|
||||
static std::map<std::wstring, Gdiplus::Font*> c_Fonts; // Cache for the fonts
|
||||
static std::unordered_map<std::wstring, Gdiplus::FontFamily*> c_FontFamilies; // Cache for the font families
|
||||
static std::unordered_map<std::wstring, Gdiplus::Font*> c_Fonts; // Cache for the fonts
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user