aboutsummaryrefslogtreecommitdiff
path: root/launcher/Version.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-27 15:53:35 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-27 15:53:35 +0300
commitc5aac24a93df4961bbd70260ab9812f1fd836779 (patch)
tree0e0015c7db5e1b74814d4e5f33ac4abc0ad3a672 /launcher/Version.h
parent288d0d1fd4562e4020c964955918a5681b547705 (diff)
parentdf14f88307b1b7f7fa305472bd2800896103f879 (diff)
downloadPrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.tar.gz
PrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.tar.bz2
PrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curse_multiple_loaders2
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/Version.h')
-rw-r--r--launcher/Version.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/launcher/Version.h b/launcher/Version.h
index 92bff9ba..9c043b01 100644
--- a/launcher/Version.h
+++ b/launcher/Version.h
@@ -103,14 +103,8 @@ class Version {
QString m_fullString;
- [[nodiscard]] inline bool isAppendix() const
- {
- return m_stringPart.startsWith('+');
- }
- [[nodiscard]] inline bool isPreRelease() const
- {
- return m_stringPart.startsWith('-') && m_stringPart.length() > 1;
- }
+ [[nodiscard]] inline bool isAppendix() const { return m_stringPart.startsWith('+'); }
+ [[nodiscard]] inline bool isPreRelease() const { return m_stringPart.startsWith('-') && m_stringPart.length() > 1; }
inline bool operator==(const Section& other) const
{
@@ -156,14 +150,8 @@ class Version {
return m_fullString < other.m_fullString;
}
- inline bool operator!=(const Section& other) const
- {
- return !(*this == other);
- }
- inline bool operator>(const Section& other) const
- {
- return !(*this < other || *this == other);
- }
+ inline bool operator!=(const Section& other) const { return !(*this == other); }
+ inline bool operator>(const Section& other) const { return !(*this < other || *this == other); }
};
private: