C++ style changes: change how pointers are compared to null

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
helen-brooks 2021-06-17 09:21:12 +01:00 committed by GitHub
parent 6c106433e6
commit c487c9ad2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1630,7 +1630,7 @@ void
MOABMesh::create_interface()
{
// Do not create a MOAB instance if one is already in memory
if(mbi_ == nullptr){
if (!mbi_) {
// create MOAB instance
mbi_ = std::make_shared<moab::Core>();

View file

@ -58,7 +58,7 @@ int main(int argc, char * argv[]){
// Upcast pointer type
MeshFilter* mesh_filter = dynamic_cast<MeshFilter*>(filter_ptr);
if(mesh_filter == nullptr){
if (!mesh_filter) {
fatal_error("Failed to create mesh filter");
}