Fix additional sonar issues
This commit is contained in:
parent
2083b66e8e
commit
8e96719480
3 changed files with 6 additions and 7 deletions
|
|
@ -61,7 +61,7 @@ LicenseManager::setSerialKey(SerialKey serialKey, bool acceptExpired)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
LicenseManager::notifyUpdate(QString fromVersion, QString toVersion) {
|
LicenseManager::notifyUpdate(QString fromVersion, QString toVersion) const {
|
||||||
if ((fromVersion == "Unknown")
|
if ((fromVersion == "Unknown")
|
||||||
&& (m_serialKey == SerialKey(kUnregistered))) {
|
&& (m_serialKey == SerialKey(kUnregistered))) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -118,7 +118,7 @@ LicenseManager::refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
LicenseManager::skipActivation()
|
LicenseManager::skipActivation() const
|
||||||
{
|
{
|
||||||
notifyActivation ("skip:unknown");
|
notifyActivation ("skip:unknown");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,9 @@ public:
|
||||||
Edition activeEdition() const;
|
Edition activeEdition() const;
|
||||||
QString activeEditionName() const;
|
QString activeEditionName() const;
|
||||||
SerialKey serialKey() const;
|
SerialKey serialKey() const;
|
||||||
void skipActivation();
|
void skipActivation() const;
|
||||||
void notifyUpdate(QString fromVersion, QString toVersion);
|
void notifyUpdate(QString fromVersion, QString toVersion) const;
|
||||||
static QString getEditionName(Edition edition, bool trial = false);
|
static QString getEditionName(Edition edition, bool trial = false);
|
||||||
void notifyActivation(QString identity) const;
|
void notifyActivation(QString identity) const;
|
||||||
QString getLicenseNotice() const;
|
QString getLicenseNotice() const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ public:
|
||||||
static const std::string TRIAL;
|
static const std::string TRIAL;
|
||||||
static const std::string TEMPORARY;
|
static const std::string TEMPORARY;
|
||||||
|
|
||||||
public:
|
|
||||||
SerialKeyType();
|
SerialKeyType();
|
||||||
|
|
||||||
void setKeyType(const std::string& Type);
|
void setKeyType(const std::string& Type);
|
||||||
|
|
@ -34,7 +33,7 @@ public:
|
||||||
bool isTemporary() const;
|
bool isTemporary() const;
|
||||||
bool isPermanent() const;
|
bool isPermanent() const;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
bool m_isTrial = false;
|
bool m_isTrial = false;
|
||||||
bool m_isTemporary = false;
|
bool m_isTemporary = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue