summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/value.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 244f23fd..37a2f317 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -83,9 +83,10 @@ public:
DIRECT_CONNTYPE);
}
- never_inline
- value(bundle b, const char* name, t def) : value(b, QString(name), def)
+ template<unsigned k>
+ inline value(bundle b, const char (&name)[k], t def) : value(b, QLatin1String(name, k-1), def)
{
+ static_assert(k > 0, "");
}
never_inline