+#include "bindings.h"
#include <algorithm>
#include <msp/strings/format.h>
-#include "bindings.h"
#include "controlscheme.h"
using namespace std;
else if(!d.name.empty())
resolved_devs.push_back(dev.find_subdevice(d.name));
else
- resolved_devs.push_back(0);
+ resolved_devs.push_back(nullptr);
}
return resolved_devs;
}
for(const Binding &b: bindings)
{
Control *ctrl = control_scheme.find(b.control);
- Device *bdev = (b.device<resolved_devs.size() ? resolved_devs[b.device] : 0);
+ Device *bdev = (b.device<resolved_devs.size() ? resolved_devs[b.device] : nullptr);
if(ctrl && bdev)
{
ctrl->set_source(*bdev, b.type, b.index);