From: Martin Ling Date: Sat, 13 Sep 2014 19:23:46 +0000 (+0100) Subject: C++: use constructors for default argument declarations. X-Git-Tag: libsigrok-0.4.0~1005 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=db560903d196c39bceeaa543317fa602a02b51ac;p=libsigrok.git C++: use constructors for default argument declarations. --- diff --git a/bindings/cxx/include/libsigrok/libsigrok.hpp b/bindings/cxx/include/libsigrok/libsigrok.hpp index 15509c9c..7b8c76d4 100644 --- a/bindings/cxx/include/libsigrok/libsigrok.hpp +++ b/bindings/cxx/include/libsigrok/libsigrok.hpp @@ -323,7 +323,8 @@ public: /** Scan for devices and return a list of devices found. * @param options Mapping of (ConfigKey, value) pairs. */ vector > scan( - map options = {}); + map options = + map()); protected: bool _initialized; vector _devices; @@ -795,7 +796,8 @@ public: map > options(); /** Create an input using this input format. * @param options Mapping of (option name, value) pairs. */ - shared_ptr create_input(map options = {}); + shared_ptr create_input(map options = + map()); protected: InputFormat(const struct sr_input_module *structure); ~InputFormat(); @@ -874,7 +876,8 @@ public: * @param device Device to output for. * @param options Mapping of (option name, value) pairs. */ shared_ptr create_output(shared_ptr device, - map options = {}); + map options = + map()); protected: OutputFormat(const struct sr_output_module *structure); ~OutputFormat();