diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 13:59:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | d6a9571641bcb34acb3521feb08eea33195fd9ca (patch) | |
tree | 5c28e2800d829b7b1896e2fcbe3f8870b88e039d /src/server/events/Get.cpp | |
parent | 25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff) | |
download | ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2 ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip |
Use nullptr
Diffstat (limited to 'src/server/events/Get.cpp')
-rw-r--r-- | src/server/events/Get.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index 64af9363..e4a5c760 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -39,8 +39,8 @@ Get::Get(Engine& engine, const Ingen::Get& msg) : Event(engine, client, msg.seq, timestamp) , _msg(msg) - , _object(NULL) - , _plugin(NULL) + , _object(nullptr) + , _plugin(nullptr) {} bool @@ -56,9 +56,9 @@ Get::pre_process(PreProcessContext& ctx) return Event::pre_process_done(Status::SUCCESS); } else if (uri_is_path(uri)) { if ((_object = _engine.store()->get(uri_to_path(uri)))) { - const BlockImpl* block = NULL; - const GraphImpl* graph = NULL; - const PortImpl* port = NULL; + const BlockImpl* block = nullptr; + const GraphImpl* graph = nullptr; + const PortImpl* port = nullptr; if ((graph = dynamic_cast<const GraphImpl*>(_object))) { _response.put_graph(graph); } else if ((block = dynamic_cast<const BlockImpl*>(_object))) { |