From 3b78634381d6da447f01f09573cb48cb771cd491 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 14 Feb 2013 01:03:42 +0000 Subject: [PATCH] Removed extraneous parentheses around arguments to 'delete'. 'delete' is a keyword, not a function, so the parens are not necessary. --- src/thermo/VPStandardStateTP.cpp | 4 ++-- src/thermo/WaterPropsIAPWS.cpp | 2 +- test_problems/fracCoeff/fracCoeff.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/thermo/VPStandardStateTP.cpp b/src/thermo/VPStandardStateTP.cpp index 3219e4574..3f802c5b5 100644 --- a/src/thermo/VPStandardStateTP.cpp +++ b/src/thermo/VPStandardStateTP.cpp @@ -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; } diff --git a/src/thermo/WaterPropsIAPWS.cpp b/src/thermo/WaterPropsIAPWS.cpp index 7e2bb685f..50ba57e20 100644 --- a/src/thermo/WaterPropsIAPWS.cpp +++ b/src/thermo/WaterPropsIAPWS.cpp @@ -82,7 +82,7 @@ WaterPropsIAPWS& WaterPropsIAPWS::operator=(const WaterPropsIAPWS& b) // destructor WaterPropsIAPWS::~WaterPropsIAPWS() { - delete(m_phi); + delete m_phi; m_phi = 0; } diff --git a/test_problems/fracCoeff/fracCoeff.cpp b/test_problems/fracCoeff/fracCoeff.cpp index d38dee9ef..7534d925a 100644 --- a/test_problems/fracCoeff/fracCoeff.cpp +++ b/test_problems/fracCoeff/fracCoeff.cpp @@ -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();