diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-11 19:56:31 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-11 19:56:31 +0200 |
commit | 457dd2e94e3c1e6cf51b7cbe264927b213d1085c (patch) | |
tree | d603f16f1fbe61504747ce972e1b3c8f005328d1 /logic | |
parent | 44db72ead568fe7ce22e1999aac02fd9aac9beea (diff) | |
download | MultiMC-457dd2e94e3c1e6cf51b7cbe264927b213d1085c.tar MultiMC-457dd2e94e3c1e6cf51b7cbe264927b213d1085c.tar.gz MultiMC-457dd2e94e3c1e6cf51b7cbe264927b213d1085c.tar.lz MultiMC-457dd2e94e3c1e6cf51b7cbe264927b213d1085c.tar.xz MultiMC-457dd2e94e3c1e6cf51b7cbe264927b213d1085c.zip |
NOISSUE make the compiler more evil
Diffstat (limited to 'logic')
-rw-r--r-- | logic/BaseInstance.h | 2 | ||||
-rw-r--r-- | logic/NullInstance.h | 1 | ||||
-rw-r--r-- | logic/pathmatcher/FSTreeMatcher.h | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 8c0c098b..cc8ebb02 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -199,7 +199,7 @@ public: VersionBrokenFlag = 0x01, UpdateAvailable = 0x02 }; - Q_DECLARE_FLAGS(InstanceFlags, InstanceFlag); + Q_DECLARE_FLAGS(InstanceFlags, InstanceFlag) InstanceFlags flags() const; void setFlags(const InstanceFlags &flags); void setFlag(const InstanceFlag flag); diff --git a/logic/NullInstance.h b/logic/NullInstance.h index dc2a8de3..d46230f4 100644 --- a/logic/NullInstance.h +++ b/logic/NullInstance.h @@ -1,3 +1,4 @@ +#pragma once #include "BaseInstance.h" class NullInstance: public BaseInstance diff --git a/logic/pathmatcher/FSTreeMatcher.h b/logic/pathmatcher/FSTreeMatcher.h index f99e45c9..a5bed57c 100644 --- a/logic/pathmatcher/FSTreeMatcher.h +++ b/logic/pathmatcher/FSTreeMatcher.h @@ -1,3 +1,5 @@ +#pragma once + #include "IPathMatcher.h" #include <SeparatorPrefixTree.h> #include <QRegularExpression> @@ -10,7 +12,7 @@ public: { } - virtual bool matches(const QString &string) override + virtual bool matches(const QString &string) const override { return m_fsTree.covers(string); } |