]> sigrok.org Git - pulseview.git/commitdiff
Store DeviceOptions::_sdi as const
authorJoel Holdsworth <redacted>
Sat, 11 Jan 2014 11:25:58 +0000 (11:25 +0000)
committerJoel Holdsworth <redacted>
Sat, 11 Jan 2014 11:25:58 +0000 (11:25 +0000)
pv/prop/binding/deviceoptions.cpp
pv/prop/binding/deviceoptions.h

index 35541fbf8b8cca292560608c1ac9822c77fc385f..e661b1952f0588e3534424c6bc32def7e42fe209 100644 (file)
@@ -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);
index 0b441599e70df89b9c57f5665282cbadecf3a723..f27823bdf08d8a0a10be5a466cae13cd446003aa 100644 (file)
@@ -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