mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
Everywhere: Use nested namespace qualifiers
This commit is contained in:
parent
a2f33fdcef
commit
66e210e406
27 changed files with 30 additions and 91 deletions
|
@ -15,18 +15,14 @@
|
|||
#include <LibGUI/UIDimensions.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace Core {
|
||||
namespace Registration {
|
||||
namespace Core::Registration {
|
||||
extern Core::ObjectClassRegistration registration_Layout;
|
||||
}
|
||||
}
|
||||
|
||||
#define REGISTER_LAYOUT(namespace_, class_name) \
|
||||
namespace Core { \
|
||||
namespace Registration { \
|
||||
namespace Core::Registration { \
|
||||
Core::ObjectClassRegistration registration_##class_name( \
|
||||
#namespace_ "::" #class_name##sv, []() { return static_ptr_cast<Core::Object>(namespace_::class_name::construct()); }, ®istration_Layout); \
|
||||
} \
|
||||
}
|
||||
|
||||
namespace GUI {
|
||||
|
|
|
@ -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())); }, ®istration_Widget); \
|
||||
} \
|
||||
}
|
||||
|
||||
namespace GUI {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue