Skip to content

Commit e4782a1

Browse files
committed
core/GuiSystem.h : remove non-initializing ctor
1 parent f695ede commit e4782a1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/candlewick/core/GuiSystem.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// \defgroup gui_util GUI utilities
22
/// Tools, render systems, etc... for the Candlewick GUI.
33
#include "Core.h"
4-
#include "Tags.h"
54
#include <functional>
65
#include <entt/entity/fwd.hpp>
76

@@ -14,17 +13,17 @@ class GuiSystem {
1413
public:
1514
using GuiBehavior = std::function<void(const Renderer &)>;
1615

17-
GuiSystem(NoInitT, GuiBehavior behav)
18-
: m_renderer(nullptr), _callback(behav) {}
1916
GuiSystem(const Renderer &renderer, GuiBehavior behav);
2017

21-
bool init(const Renderer &renderer);
2218
void render(CommandBuffer &cmdBuf);
2319
void release();
2420

2521
bool initialized() const { return m_initialized; }
2622

2723
GuiBehavior _callback;
24+
25+
private:
26+
bool init(const Renderer &renderer);
2827
};
2928

3029
/// \ingroup gui_util

0 commit comments

Comments
 (0)