X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fsortaction.h;h=0e59cd385e1701eff4b2a592fbd0dc9aae2c73bb;hb=db8596d6eb24c982bc3b5eab235ca4ca7a3aea36;hp=d1a3f7bca68e3fe5a11c94631f117123c10295fe;hpb=3fff88637ec7e806f19e613051f31ca5178d2cf5;p=germs.git 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(){};