#5657 Remove C++11 enum qualifier
This commit is contained in:
parent
4ad7c7fe39
commit
3ee9ac5d49
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue