]> sigrok.org Git - libsigrok.git/commitdiff
C++: use constructors for default argument declarations.
authorMartin Ling <redacted>
Sat, 13 Sep 2014 19:23:46 +0000 (20:23 +0100)
committerMartin Ling <redacted>
Sat, 13 Sep 2014 19:23:46 +0000 (20:23 +0100)
bindings/cxx/include/libsigrok/libsigrok.hpp

index 15509c9c5803ac805956a8f7f648fe98502e95a1..7b8c76d48a70549d9e6a38417f65f27086542713 100644 (file)
@@ -323,7 +323,8 @@ public:
        /** Scan for devices and return a list of devices found.
         * @param options Mapping of (ConfigKey, value) pairs. */
        vector<shared_ptr<HardwareDevice> > scan(
-               map<const ConfigKey *, Glib::VariantBase> options = {});
+               map<const ConfigKey *, Glib::VariantBase> options =
+                       map<const ConfigKey *, Glib::VariantBase>());
 protected:
        bool _initialized;
        vector<HardwareDevice *> _devices;
@@ -795,7 +796,8 @@ public:
        map<string, shared_ptr<Option> > options();
        /** Create an input using this input format.
         * @param options Mapping of (option name, value) pairs. */
-       shared_ptr<Input> create_input(map<string, Glib::VariantBase> options = {});
+       shared_ptr<Input> create_input(map<string, Glib::VariantBase> options =
+               map<string, Glib::VariantBase>());
 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<Output> create_output(shared_ptr<Device> device,
-               map<string, Glib::VariantBase> options = {});
+               map<string, Glib::VariantBase> options =
+                       map<string, Glib::VariantBase>());
 protected:
        OutputFormat(const struct sr_output_module *structure);
        ~OutputFormat();