mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
a4324ee6e9
We added these methods to propagate OOM errors at process startup, but we longer fret about these tiny OOM failures. Requiring that these init methods be called prohibits using these strings in processes that have not set up a MainThreadVM. So let's just remove them and initialize the strings in a sane manner. In doing so, this also standardizes how we initialize strings whose C++ variable name differs from their string value. Instead of special-casing these strings, we just include their string value in the x-macro list.
16 lines
397 B
C++
16 lines
397 B
C++
/*
|
|
* Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/NavigationTiming/EntryNames.h>
|
|
|
|
namespace Web::NavigationTiming::EntryNames {
|
|
|
|
#define __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME(name, _) \
|
|
FlyString name = #name##_fly_string;
|
|
ENUMERATE_NAVIGATION_TIMING_ENTRY_NAMES
|
|
#undef __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME
|
|
|
|
}
|