aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Component.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/Component.h')
-rw-r--r--src/crepe/Component.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h
index 7734335..2e4ef7d 100644
--- a/src/crepe/Component.h
+++ b/src/crepe/Component.h
@@ -9,8 +9,8 @@ class ComponentManager;
/**
* \brief Base class for all components
*
- * This class is the base class for all components. It provides a common
- * interface for all components.
+ * This class is the base class for all components. It provides a common interface for all
+ * components.
*/
class Component {
public:
@@ -32,12 +32,15 @@ protected:
//! Only ComponentManager can create components
friend class ComponentManager;
+public:
+ virtual ~Component() = default;
+
+public:
/**
* \brief Get the maximum number of instances for this component
*
- * This method returns -1 by default, which means that there is no limit
- * for the number of instances. Concrete components can override this method
- * to set a limit.
+ * This method returns -1 by default, which means that there is no limit for the number of
+ * instances. Concrete components can override this method to set a limit.
*
* \return The maximum number of instances for this component
*/