From: Joel Holdsworth Date: Sat, 11 Jan 2014 11:25:58 +0000 (+0000) Subject: Store DeviceOptions::_sdi as const X-Git-Tag: pulseview-0.2.0~153 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2f779c1bd6a9a74c97be09ee6842a7527e083fa6;p=pulseview.git Store DeviceOptions::_sdi as const --- diff --git a/pv/prop/binding/deviceoptions.cpp b/pv/prop/binding/deviceoptions.cpp index 35541fbf..e661b195 100644 --- a/pv/prop/binding/deviceoptions.cpp +++ b/pv/prop/binding/deviceoptions.cpp @@ -45,7 +45,7 @@ namespace pv { namespace prop { namespace binding { -DeviceOptions::DeviceOptions(struct sr_dev_inst *sdi) : +DeviceOptions::DeviceOptions(const sr_dev_inst *sdi) : _sdi(sdi) { assert(sdi); diff --git a/pv/prop/binding/deviceoptions.h b/pv/prop/binding/deviceoptions.h index 0b441599..f27823bd 100644 --- a/pv/prop/binding/deviceoptions.h +++ b/pv/prop/binding/deviceoptions.h @@ -37,7 +37,7 @@ namespace binding { class DeviceOptions : public Binding { public: - DeviceOptions(struct sr_dev_inst *sdi); + DeviceOptions(const sr_dev_inst *sdi); private: @@ -60,7 +60,7 @@ private: static QString print_voltage_threshold(GVariant *const gvar); protected: - struct sr_dev_inst *const _sdi; + const sr_dev_inst *const _sdi; }; } // binding