Various minor whitespace and consistency fixes.
[pulseview.git] / pv / binding / inputoutput.cpp
index 956b12b32ff4d04de89c7e26f84352b689520930..30548a82a000d5641f75a3ce0073a1e3e4589d50 100644 (file)
@@ -61,8 +61,7 @@ namespace binding {
 InputOutput::InputOutput(
        const map<string, shared_ptr<Option>> &options)
 {
-       for (pair<string, shared_ptr<Option>> o : options)
-       {
+       for (pair<string, shared_ptr<Option>> o : options) {
                const shared_ptr<Option> &opt = o.second;
                assert(opt);
 
@@ -85,7 +84,7 @@ InputOutput::InputOutput(
                        prop = shared_ptr<Property>(new Bool(name, get, set));
                else if (def_val.is_of_type(VariantType("d")))
                        prop = shared_ptr<Property>(new Double(name, 2, "",
-                               nullptr, nullptr, get, set));
+                               none, none, get, set));
                else if (def_val.is_of_type(VariantType("i")) ||
                        def_val.is_of_type(VariantType("t")) ||
                        def_val.is_of_type(VariantType("u")))