AK: Revert Eternal<T> for now since it doesn't work as intended.

This commit is contained in:
Andreas Kling 2019-04-05 05:10:18 +02:00
parent fb6dc5350d
commit bcc00857a4
Notes: sideshowbarker 2024-07-19 14:48:55 +09:00
14 changed files with 51 additions and 67 deletions

View file

@ -1,14 +1,16 @@
#include <LibGUI/GFontDatabase.h>
#include <SharedGraphics/Font.h>
#include <AK/Eternal.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
static GFontDatabase* s_the;
GFontDatabase& GFontDatabase::the()
{
static Eternal<GFontDatabase> the;
return the;
if (!s_the)
s_the = new GFontDatabase;
return *s_the;
}
GFontDatabase::GFontDatabase()