summaryrefslogtreecommitdiffstats
path: root/src/client/BlockModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 13:59:47 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commitd6a9571641bcb34acb3521feb08eea33195fd9ca (patch)
tree5c28e2800d829b7b1896e2fcbe3f8870b88e039d /src/client/BlockModel.cpp
parent25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff)
downloadingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip
Use nullptr
Diffstat (limited to 'src/client/BlockModel.cpp')
-rw-r--r--src/client/BlockModel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp
index e3f7d22f..a5f2eef0 100644
--- a/src/client/BlockModel.cpp
+++ b/src/client/BlockModel.cpp
@@ -32,8 +32,8 @@ BlockModel::BlockModel(URIs& uris,
, _plugin_uri(plugin->uri())
, _plugin(plugin)
, _num_values(0)
- , _min_values(0)
- , _max_values(0)
+ , _min_values(nullptr)
+ , _max_values(nullptr)
{
}
@@ -43,8 +43,8 @@ BlockModel::BlockModel(URIs& uris,
: ObjectModel(uris, path)
, _plugin_uri(plugin_uri)
, _num_values(0)
- , _min_values(0)
- , _max_values(0)
+ , _min_values(nullptr)
+ , _max_values(nullptr)
{
}
@@ -94,8 +94,8 @@ BlockModel::clear()
assert(_ports.empty());
delete[] _min_values;
delete[] _max_values;
- _min_values = 0;
- _max_values = 0;
+ _min_values = nullptr;
+ _max_values = nullptr;
}
void
@@ -180,7 +180,7 @@ BlockModel::default_port_value_range(SPtr<const PortModel> port,
_min_values = new float[_num_values];
_max_values = new float[_num_values];
lilv_plugin_get_port_ranges_float(_plugin->lilv_plugin(),
- _min_values, _max_values, 0);
+ _min_values, _max_values, nullptr);
}
if (!std::isnan(_min_values[port->index()]))