#5657 Remove C++11 enum qualifier

This commit is contained in:
Andrew Nelless 2016-10-15 15:48:07 +01:00
parent 4ad7c7fe39
commit 3ee9ac5d49
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ SerialKey::SerialKey(std::string serial) :
m_userLimit(1),
m_warnTime(0),
m_expireTime(0),
m_edition(Edition::kBasic),
m_edition(kBasic),
m_trial(true),
m_valid(false)
{
@ -210,9 +210,9 @@ SerialKey::parse(std::string plainSerial)
Edition
SerialKey::parseEdition(std::string editionStr)
{
Edition e = Edition::kBasic;
Edition e = kBasic;
if (editionStr == "pro") {
e = Edition::kPro;
e = kPro;
}
return e;

View File

@ -28,7 +28,7 @@
class SerialKey {
friend bool operator== (SerialKey const&, SerialKey const&);
public:
explicit SerialKey(Edition edition = Edition::kUnregistered);
explicit SerialKey(Edition edition = kUnregistered);
explicit SerialKey(std::string serial);
bool isValid(time_t currentTime) const;