1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

Everywhere: Use nested namespace qualifiers

This commit is contained in:
Nico Weber 2023-07-11 13:49:08 -04:00 committed by Ali Mohammad Pur
parent a2f33fdcef
commit 66e210e406
27 changed files with 30 additions and 91 deletions

View file

@ -27,18 +27,14 @@
#include <LibGfx/Rect.h>
#include <LibGfx/StandardCursor.h>
namespace Core {
namespace Registration {
namespace Core::Registration {
extern Core::ObjectClassRegistration registration_Widget;
}
}
#define REGISTER_WIDGET(namespace_, class_name) \
namespace Core { \
namespace Registration { \
namespace Core::Registration { \
Core::ObjectClassRegistration registration_##class_name( \
#namespace_ "::" #class_name##sv, []() -> ErrorOr<NonnullRefPtr<Core::Object>> { return static_ptr_cast<Core::Object>(TRY(namespace_::class_name::try_create())); }, &registration_Widget); \
} \
}
namespace GUI {