aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/Container.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-21 21:43:42 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-21 21:43:42 +0800
commit3b875091c445b7465b9bd044914318989a94d2ad (patch)
treea358aebb488ec1ddc86bf87b8038bacd5d7515cb /src/ui/controls/Container.cpp
parent3cda35dbcbbe1e3854b880169c0efa0fc7a79264 (diff)
downloadcru-3b875091c445b7465b9bd044914318989a94d2ad.tar.gz
cru-3b875091c445b7465b9bd044914318989a94d2ad.tar.bz2
cru-3b875091c445b7465b9bd044914318989a94d2ad.zip
Clean codes. Remove member function const.
Diffstat (limited to 'src/ui/controls/Container.cpp')
-rw-r--r--src/ui/controls/Container.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/controls/Container.cpp b/src/ui/controls/Container.cpp
index 7b0c10a9..32efa233 100644
--- a/src/ui/controls/Container.cpp
+++ b/src/ui/controls/Container.cpp
@@ -1,11 +1,7 @@
#include "cru/ui/controls/Container.h"
-
-#include "cru/platform/graphics/Factory.h"
#include "cru/ui/render/BorderRenderObject.h"
-#include "cru/ui/render/RenderObject.h"
namespace cru::ui::controls {
-Container::Container() {}
-
-Container::~Container() = default;
+Container::Container()
+ : SingleChildControl<render::BorderRenderObject>(kControlName) {}
} // namespace cru::ui::controls