From 1c14858d7eb8283d147fbe11963d7b32b221a98b Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 24 Jun 2007 12:15:25 +0000 Subject: [PATCH] copy constructor and assignment constructor --- src/sortaction.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sortaction.h b/src/sortaction.h index d1a3f7b..0e59cd3 100644 --- a/src/sortaction.h +++ b/src/sortaction.h @@ -38,6 +38,15 @@ class SortAction{ */ SortAction(SortAction* sa): _action(sa){ } + + SortAction(const SortAction& sa): _action(sa._action){ + } + + virtual const SortAction& operator=(const SortAction& sa){ + if (this != &sa) + _action = sa._action; + return *this; + } virtual ~SortAction(){}; -- 2.39.2