1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Port SVG::TagNames from DeprecatedFlyString

This commit is contained in:
Shannon Booth 2023-10-08 14:17:34 +13:00 committed by Tim Flynn
parent 48f367adbb
commit 7aac7002d1
4 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@
namespace Web::SVG::TagNames {
#define __ENUMERATE_SVG_TAG(name) DeprecatedFlyString name;
#define __ENUMERATE_SVG_TAG(name) FlyString name;
ENUMERATE_SVG_TAGS
#undef __ENUMERATE_SVG_TAG
@ -17,7 +17,7 @@ void initialize_strings()
static bool s_initialized = false;
VERIFY(!s_initialized);
#define __ENUMERATE_SVG_TAG(name) name = #name;
#define __ENUMERATE_SVG_TAG(name) name = #name##_fly_string;
ENUMERATE_SVG_TAGS
#undef __ENUMERATE_SVG_TAG

View file

@ -6,8 +6,8 @@
#pragma once
#include <AK/DeprecatedFlyString.h>
#include <AK/Error.h>
#include <AK/FlyString.h>
namespace Web::SVG::TagNames {
@ -40,7 +40,7 @@ namespace Web::SVG::TagNames {
__ENUMERATE_SVG_TAG(title) \
__ENUMERATE_SVG_TAG(use)
#define __ENUMERATE_SVG_TAG(name) extern DeprecatedFlyString name;
#define __ENUMERATE_SVG_TAG(name) extern FlyString name;
ENUMERATE_SVG_TAGS
#undef __ENUMERATE_SVG_TAG