summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-08 12:53:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:49:54 +0200
commitbfb0b9c197a15aa7e9826e6c2835948e8029dd81 (patch)
treeedf087392cfddc7367bea22c3519e4e23cf036b7 /opentrack-compat
parenta4c74da8884657b6438beb22ec3a146c087cce79 (diff)
compat/options: allow devirtualize
Diffstat (limited to 'opentrack-compat')
-rw-r--r--opentrack-compat/options.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index 98d0dc83..bd01c1a7 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -156,7 +156,7 @@ namespace options {
pbundle bundle(const QString& name);
- class OPENTRACK_COMPAT_EXPORT opt_bundle : public impl_bundle
+ class OPENTRACK_COMPAT_EXPORT opt_bundle final : public impl_bundle
{
public:
opt_bundle() : impl_bundle("i-have-no-name") {}
@@ -290,7 +290,7 @@ namespace options {
void operator()(int idx)
{
- if (idx < 0u || idx >= (int)enum_cases.size())
+ if (idx < 0 || idx >= (int)enum_cases.size())
v = static_cast<t>(-1);
else
v = static_cast<t>(enum_cases[idx]);