Removed extraneous parentheses around arguments to 'delete'.

'delete' is a keyword, not a function, so the parens are not necessary.
This commit is contained in:
Ray Speth 2013-02-14 01:03:42 +00:00
parent 6d6e237f07
commit 3b78634381
3 changed files with 6 additions and 6 deletions

View file

@ -67,7 +67,7 @@ VPStandardStateTP::operator=(const VPStandardStateTP& b)
*/
if (m_PDSS_storage.size() > 0) {
for (int k = 0; k < (int) m_PDSS_storage.size(); k++) {
delete(m_PDSS_storage[k]);
delete m_PDSS_storage[k];
}
}
m_PDSS_storage.resize(m_kk);
@ -114,7 +114,7 @@ VPStandardStateTP::operator=(const VPStandardStateTP& b)
VPStandardStateTP::~VPStandardStateTP()
{
for (int k = 0; k < (int) m_PDSS_storage.size(); k++) {
delete(m_PDSS_storage[k]);
delete m_PDSS_storage[k];
}
delete m_VPSS_ptr;
}

View file

@ -82,7 +82,7 @@ WaterPropsIAPWS& WaterPropsIAPWS::operator=(const WaterPropsIAPWS& b)
// destructor
WaterPropsIAPWS::~WaterPropsIAPWS()
{
delete(m_phi);
delete m_phi;
m_phi = 0;
}

View file

@ -152,10 +152,10 @@ int main(int argc, char** argv)
printf("Kc[0] = %g\n", kc[0]);
printf("Kc[1] = %g\n", kc[1]);
delete(iKin_ptr);
delete iKin_ptr;
iKin_ptr = 0;
delete(gasTP);
delete(xc);
delete gasTP;
delete xc;
appdelete();