Merge pull request #2358 from eagunn/iss2345
Replace instances of NULL with nullptr
This commit is contained in:
@ -30,13 +30,13 @@ enum{ELLIPSOID,LINE,TRIANGLE,BODY}; // also in WriteData
|
||||
AtomVecHybrid::AtomVecHybrid(LAMMPS *lmp) : AtomVec(lmp)
|
||||
{
|
||||
nstyles = 0;
|
||||
styles = NULL;
|
||||
keywords = NULL;
|
||||
fieldstrings = NULL;
|
||||
styles = nullptr;
|
||||
keywords = nullptr;
|
||||
fieldstrings = nullptr;
|
||||
|
||||
bonus_flag = 0;
|
||||
nstyles_bonus = 0;
|
||||
styles_bonus = NULL;
|
||||
styles_bonus = nullptr;
|
||||
|
||||
// these strings will be concatenated from sub-style strings
|
||||
// fields_data_atom & fields_data_vel start with fields common to all styles
|
||||
@ -187,7 +187,7 @@ void AtomVecHybrid::process_args(int narg, char **arg)
|
||||
// save concat_grow to check for duplicates of special-case fields
|
||||
|
||||
char *concat_grow;;
|
||||
char *null = NULL;
|
||||
char *null = nullptr;
|
||||
|
||||
fields_grow = merge_fields(0,fields_grow,1,concat_grow);
|
||||
fields_copy = merge_fields(1,fields_copy,0,null);
|
||||
|
||||
Reference in New Issue
Block a user