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/PatchageModule.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/PatchageModule.cpp') diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index cf2ba71..0b09a4f 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -1,5 +1,5 @@ /* This file is part of Patchage. - * Copyright 2010-2014 David Robillard + * Copyright 2010-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 @@ -27,7 +27,7 @@ PatchageModule::PatchageModule(Patchage* app, double y) : Module(*app->canvas().get(), name, x, y) , _app(app) - , _menu(NULL) + , _menu(nullptr) , _name(name) , _type(type) { @@ -44,7 +44,7 @@ PatchageModule::~PatchageModule() { _app->canvas()->remove_module(this); delete _menu; - _menu = NULL; + _menu = nullptr; } void @@ -153,5 +153,5 @@ PatchageModule::get_port(const std::string& name) } } - return NULL; + return nullptr; } -- cgit v1.2.1