From bfb0b9c197a15aa7e9826e6c2835948e8029dd81 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 8 Jun 2016 12:53:47 +0200 Subject: compat/options: allow devirtualize --- opentrack-compat/options.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack-compat') 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(-1); else v = static_cast(enum_cases[idx]); -- cgit v1.2.3