Store DeviceOptions::_sdi as const
[pulseview.git] / pv / prop / binding / deviceoptions.cpp
index ff7be104feb8406af3bdcfc4bd22c7dd34ef0e2b..e661b1952f0588e3534424c6bc32def7e42fe209 100644 (file)
 #include <pv/prop/enum.h>
 #include <pv/prop/int.h>
 
-using namespace boost;
-using namespace std;
+using boost::bind;
+using boost::function;
+using boost::optional;
+using boost::shared_ptr;
+using std::make_pair;
+using std::pair;
+using std::string;
+using std::vector;
 
 namespace pv {
 namespace prop {
 namespace binding {
 
-DeviceOptions::DeviceOptions(struct sr_dev_inst *sdi) :
+DeviceOptions::DeviceOptions(const sr_dev_inst *sdi) :
        _sdi(sdi)
 {
        assert(sdi);