Copy constructor added to Login class

This commit is contained in:
Emiel Bruijntjes 2014-01-26 12:02:23 -08:00
parent 99406af6c7
commit 42f61a65bf
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,13 @@ public:
Login(const std::string &user, const std::string &password) :
_user(user), _password(password) {}
/**
* Copy constructor
* @param login
*/
Login(const Login &login) :
_user(login._user), _password(login._password) {}
/**
* Constructor
*/