From: Bartosz Golaszewski Date: Mon, 29 Jun 2015 13:17:54 +0000 (+0200) Subject: InputOutput: replace nullptr with boost::none in Double() X-Git-Tag: pulseview-0.3.0~183 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=ec6cc07fed12f5070eee6b8cb11343e83d42533c InputOutput: replace nullptr with boost::none in Double() Passing nullptr as the fourth argument in Double's constructor seems to build fine on x86, but causes build failures on many other architectures. Replace it with boost::none. Signed-off-by: Bartosz Golaszewski --- diff --git a/pv/binding/inputoutput.cpp b/pv/binding/inputoutput.cpp index 956b12b3..0dc0fc19 100644 --- a/pv/binding/inputoutput.cpp +++ b/pv/binding/inputoutput.cpp @@ -85,7 +85,7 @@ InputOutput::InputOutput( prop = shared_ptr(new Bool(name, get, set)); else if (def_val.is_of_type(VariantType("d"))) prop = shared_ptr(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")))