From 8edaca929cbc619d47e799f19494d1b3b6c4dd2f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:35 +0100 Subject: Use nullptr --- src/PatchageEvent.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/PatchageEvent.cpp') 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 + * Copyright 2007-2020 David Robillard * * 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(); -- cgit v1.2.1