mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-08 20:22:55 +00:00
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
346 B
C++
16 lines
346 B
C++
/*
|
|
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/XLink/AttributeNames.h>
|
|
|
|
namespace Web::XLink::AttributeNames {
|
|
|
|
#define __ENUMERATE_XLINK_ATTRIBUTE(name) \
|
|
FlyString name = #name##_fly_string;
|
|
ENUMERATE_XLINK_ATTRIBUTES
|
|
#undef __ENUMERATE_XLINK_ATTRIBUTE
|
|
|
|
}
|