private SlotGuard

This commit is contained in:
2025-08-06 16:52:20 +02:00
parent 5d196c4b61
commit fb53ece340
3 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ namespace utils {
/**
* \brief Wrapper class to automatically disconnect from a Signal on object destruction
* \note You should inherit this class privately
* \sa Signal
*/
class SlotGuard {

View File

@@ -18,7 +18,7 @@ class BasicRenderer {
};
template <typename TShader>
class Renderer : public BasicRenderer, public utils::SlotGuard {
class Renderer : public BasicRenderer, private utils::SlotGuard {
protected:
std::unique_ptr<TShader> m_Shader;
Camera& m_Camera;