From c4c3e746f030e6c5e5a1f8b88762fae95d1b9225 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Nov 2015 06:14:13 +0100 Subject: options: konst korrektness --- opentrack-compat/options.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp index 9b03c18f..3e4fb20e 100644 --- a/opentrack-compat/options.hpp +++ b/opentrack-compat/options.hpp @@ -382,7 +382,7 @@ namespace options { value(pbundle b, const QString& name, t def) : value(b, string_from_qstring(name), def) {} value(pbundle b, const char* name, t def) : value(b, string(name), def) {} - operator t() + operator t() const { return b->contains(self_name) ? b->get(self_name) : def; } -- cgit v1.2.3