Revision 752 branches/threaded2/src/linad99/adcomm1.cpp

adcomm1.cpp (revision 752)
85 85
    if (argv[counter])
86 86
    {
87 87
      delete [] argv[counter];
88
      argv[counter]=NULL;
88
      argv[counter] = nullptr;
89 89
    }
90 90
    counter--;
91 91
    strcpy(argv[0],(char*)str(counter));
......
250 250
  argv[0] = new char[20];
251 251
  for (int i = 1; i < num_args; i++)
252 252
  {
253
    argv[i] = NULL;
253
    argv[i] = nullptr;
254 254
  }
255
  argv[num_args]=NULL;
255
  argv[num_args] = nullptr;
256 256
}
257 257

  
258 258
/**
......
268 268
      if (argv[i])
269 269
      {
270 270
        delete [] argv[i];
271
        argv[i]=NULL;
271
        argv[i] = nullptr;
272 272
      }
273 273
    }
274 274
    delete [] argv;
275
    argv = NULL;
275
    argv = nullptr;
276 276
    num_args=0;
277 277
  }
278 278
}

Also available in: Unified diff