From: Joel Holdsworth Date: Sat, 11 Jan 2014 11:25:58 +0000 (+0000) Subject: Store DeviceOptions::_sdi as const X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=2f779c1bd6a9a74c97be09ee6842a7527e083fa6 Store DeviceOptions::_sdi as const --- diff --git a/pv/prop/binding/deviceoptions.cpp b/pv/prop/binding/deviceoptions.cpp index 35541fb..e661b19 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 0b44159..f27823b 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