mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Make BaseVersion const-correct in order to remove const-cast from Meta::Version
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
b7b06c0e48
commit
5ef61aa445
7 changed files with 33 additions and 33 deletions
|
|
@ -24,17 +24,17 @@
|
|||
struct JavaInstall : public BaseVersion {
|
||||
JavaInstall() {}
|
||||
JavaInstall(QString id, QString arch, QString path) : id(id), arch(arch), path(path) {}
|
||||
virtual QString descriptor() override { return id.toString(); }
|
||||
virtual QString descriptor() const override { return id.toString(); }
|
||||
|
||||
virtual QString name() override { return id.toString(); }
|
||||
virtual QString name() const override { return id.toString(); }
|
||||
|
||||
virtual QString typeString() const override { return arch; }
|
||||
|
||||
virtual bool operator<(BaseVersion& a) override;
|
||||
virtual bool operator>(BaseVersion& a) override;
|
||||
bool operator<(const JavaInstall& rhs);
|
||||
bool operator==(const JavaInstall& rhs);
|
||||
bool operator>(const JavaInstall& rhs);
|
||||
virtual bool operator<(BaseVersion& a) const override;
|
||||
virtual bool operator>(BaseVersion& a) const override;
|
||||
bool operator<(const JavaInstall& rhs) const;
|
||||
bool operator==(const JavaInstall& rhs) const;
|
||||
bool operator>(const JavaInstall& rhs) const;
|
||||
|
||||
JavaVersion id;
|
||||
QString arch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue