From f9ea4c847d845d0f2a5cb97142435cb00274c5fe Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 29 Jan 1999 22:36:53 +0000 Subject: [PATCH] removed const cast away --- src/cxxTemplates/resourceLib.h | 7 ++++++- src/libCom/cxxTemplates/resourceLib.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/cxxTemplates/resourceLib.h b/src/cxxTemplates/resourceLib.h index 219d1d93d..b21273120 100644 --- a/src/cxxTemplates/resourceLib.h +++ b/src/cxxTemplates/resourceLib.h @@ -29,6 +29,10 @@ * * History * $Log$ + * Revision 1.19 1998/10/23 19:23:46 jhill + * fixed problem associated with deleting "const char *" + * on the solaris compiler + * * Revision 1.18 1998/10/23 00:20:40 jhill * attempted to clean up HP-UX warnings * @@ -698,7 +702,8 @@ stringId::~stringId() // is the same as deleting a pointer to // "const char" on all compilers // - delete [] (char * const) this->pStr; + //delete [] (char * const) this->pStr; + delete [] this->pStr; } } } diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 219d1d93d..b21273120 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -29,6 +29,10 @@ * * History * $Log$ + * Revision 1.19 1998/10/23 19:23:46 jhill + * fixed problem associated with deleting "const char *" + * on the solaris compiler + * * Revision 1.18 1998/10/23 00:20:40 jhill * attempted to clean up HP-UX warnings * @@ -698,7 +702,8 @@ stringId::~stringId() // is the same as deleting a pointer to // "const char" on all compilers // - delete [] (char * const) this->pStr; + //delete [] (char * const) this->pStr; + delete [] this->pStr; } } }