mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Use "namespace Web::Foo {" since C++20 allows it :^)
Thanks @nico for teaching me about this!
This commit is contained in:
@@ -61,8 +61,7 @@ int main(int argc, char** argv)
|
||||
|
||||
out() << "#include <AK/Assertions.h>";
|
||||
out() << "#include <LibWeb/CSS/PropertyID.h>";
|
||||
out() << "namespace Web {";
|
||||
out() << "namespace CSS {";
|
||||
out() << "namespace Web::CSS {";
|
||||
|
||||
out() << "PropertyID property_id_from_string(const StringView& string) {";
|
||||
|
||||
@@ -88,7 +87,6 @@ int main(int argc, char** argv)
|
||||
out() << " }";
|
||||
out() << "}";
|
||||
out() << "}";
|
||||
out() << "}";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -63,8 +63,7 @@ int main(int argc, char** argv)
|
||||
out() << "#include <AK/StringView.h>";
|
||||
out() << "#include <AK/Traits.h>";
|
||||
|
||||
out() << "namespace Web {";
|
||||
out() << "namespace CSS {";
|
||||
out() << "namespace Web::CSS {";
|
||||
out() << "enum class PropertyID {";
|
||||
out() << " Invalid,";
|
||||
|
||||
@@ -77,7 +76,6 @@ int main(int argc, char** argv)
|
||||
PropertyID property_id_from_string(const StringView&);\n\
|
||||
const char* string_from_property_id(PropertyID);\n\
|
||||
}\n\
|
||||
}\n\
|
||||
\n\
|
||||
namespace AK {\n\
|
||||
template<>\n\
|
||||
|
||||
Reference in New Issue
Block a user