diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:35 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | 8edaca929cbc619d47e799f19494d1b3b6c4dd2f (patch) | |
tree | 8cb043ac82d7519ca4b6de2791cbb02d4e2b218a /src/PatchageEvent.cpp | |
parent | 976d937b2fdf24c76b6b5575afc6cbe222a87b63 (diff) | |
download | patchage-8edaca929cbc619d47e799f19494d1b3b6c4dd2f.tar.gz patchage-8edaca929cbc619d47e799f19494d1b3b6c4dd2f.tar.bz2 patchage-8edaca929cbc619d47e799f19494d1b3b6c4dd2f.zip |
Use nullptr
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index 78f0829..a1b3f0a 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -1,5 +1,5 @@ /* This file is part of Patchage. - * Copyright 2007-2014 David Robillard <http://drobilla.net> + * Copyright 2007-2020 David Robillard <d@drobilla.net> * * Patchage is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free @@ -45,16 +45,16 @@ PatchageEvent::execute(Patchage* patchage) } else if (_type == CLIENT_CREATION) { // No empty modules (for now) g_free(_str); - _str = NULL; + _str = nullptr; } else if (_type == CLIENT_DESTRUCTION) { patchage->canvas()->remove_module(_str); g_free(_str); - _str = NULL; + _str = nullptr; } else if (_type == PORT_CREATION) { - Driver* driver = NULL; + Driver* driver = nullptr; if (_port_1.type == PortID::JACK_ID) { #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) driver = patchage->jack_driver(); |