mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
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:
parent
6c106433e6
commit
c487c9ad2d
2 changed files with 2 additions and 2 deletions
|
|
@ -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>();
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue