From 311031ecd03dbfbf43e1df672a395f24b2e7d4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastia=CC=81n=20Barschkis?= Date: Fri, 6 Nov 2020 11:44:05 +0100 Subject: Cleanup: Use nullptr everywhere in fluid code Switched from NULL to nullptr. --- extern/mantaflow/preprocessed/plugin/fire.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'extern/mantaflow/preprocessed/plugin/fire.cpp') diff --git a/extern/mantaflow/preprocessed/plugin/fire.cpp b/extern/mantaflow/preprocessed/plugin/fire.cpp index 9047d4bf8a1..f907bdf0504 100644 --- a/extern/mantaflow/preprocessed/plugin/fire.cpp +++ b/extern/mantaflow/preprocessed/plugin/fire.cpp @@ -258,10 +258,10 @@ struct KnProcessBurn : public KernelBase { void processBurn(Grid &fuel, Grid &density, Grid &react, - Grid *red = NULL, - Grid *green = NULL, - Grid *blue = NULL, - Grid *heat = NULL, + Grid *red = nullptr, + Grid *green = nullptr, + Grid *blue = nullptr, + Grid *heat = nullptr, Real burningRate = 0.75f, Real flameSmoke = 1.0f, Real ignitionTemp = 1.25f, @@ -290,16 +290,16 @@ static PyObject *_W_0(PyObject *_self, PyObject *_linargs, PyObject *_kwds) FluidSolver *parent = _args.obtainParent(); bool noTiming = _args.getOpt("notiming", -1, 0); pbPreparePlugin(parent, "processBurn", !noTiming); - PyObject *_retval = 0; + PyObject *_retval = nullptr; { ArgLocker _lock; Grid &fuel = *_args.getPtr>("fuel", 0, &_lock); Grid &density = *_args.getPtr>("density", 1, &_lock); Grid &react = *_args.getPtr>("react", 2, &_lock); - Grid *red = _args.getPtrOpt>("red", 3, NULL, &_lock); - Grid *green = _args.getPtrOpt>("green", 4, NULL, &_lock); - Grid *blue = _args.getPtrOpt>("blue", 5, NULL, &_lock); - Grid *heat = _args.getPtrOpt>("heat", 6, NULL, &_lock); + Grid *red = _args.getPtrOpt>("red", 3, nullptr, &_lock); + Grid *green = _args.getPtrOpt>("green", 4, nullptr, &_lock); + Grid *blue = _args.getPtrOpt>("blue", 5, nullptr, &_lock); + Grid *heat = _args.getPtrOpt>("heat", 6, nullptr, &_lock); Real burningRate = _args.getOpt("burningRate", 7, 0.75f, &_lock); Real flameSmoke = _args.getOpt("flameSmoke", 8, 1.0f, &_lock); Real ignitionTemp = _args.getOpt("ignitionTemp", 9, 1.25f, &_lock); @@ -407,7 +407,7 @@ static PyObject *_W_1(PyObject *_self, PyObject *_linargs, PyObject *_kwds) FluidSolver *parent = _args.obtainParent(); bool noTiming = _args.getOpt("notiming", -1, 0); pbPreparePlugin(parent, "updateFlame", !noTiming); - PyObject *_retval = 0; + PyObject *_retval = nullptr; { ArgLocker _lock; const Grid &react = *_args.getPtr>("react", 0, &_lock); -- cgit v1.2.3