diff --git a/code/Decorator/Decorator.cpp b/code/Decorator/Decorator.cpp index 0888eed..93f1128 100644 --- a/code/Decorator/Decorator.cpp +++ b/code/Decorator/Decorator.cpp @@ -8,8 +8,7 @@ #include "Decorator.h" -Decorator::Decorator(Component* pcmp){ - m_pComponent = pcmp; +Decorator::Decorator(Component* pcmp): m_pComponent(pcmp){ } Decorator::~Decorator(){ @@ -18,4 +17,4 @@ Decorator::~Decorator(){ void Decorator::operation(){ m_pComponent->operation(); -} \ No newline at end of file +}