diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 06:14:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 06:14:13 +0100 |
commit | c4c3e746f030e6c5e5a1f8b88762fae95d1b9225 (patch) | |
tree | a12a1b3257585e7bc801ee04f08f0c887d112ed4 | |
parent | 2d90e4039c6dd1aab00c738f9bbc70a4949cd583 (diff) |
options: konst korrektness
-rw-r--r-- | opentrack-compat/options.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<t>(self_name) : def; } |