From 0de79d4b2d8918b0a520728d406a56251dac1fa9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 5 Jun 2009 13:17:01 -0400 Subject: [PATCH] ENH: fix warning on borland --- Source/kwsys/SystemTools.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 45c496974..33388200a 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -405,17 +405,17 @@ bool SystemTools::GetEnv(const char* key, kwsys_stl::string& result) class kwsysDeletingCharVector : public kwsys_stl::vector { public: - ~kwsysDeletingCharVector() - { - for(kwsys_stl::vector::iterator i = this->begin(); - i != this->end(); ++i) - { - delete []*i; - } - } + ~kwsysDeletingCharVector(); }; - +kwsysDeletingCharVector::~kwsysDeletingCharVector() +{ + for(kwsys_stl::vector::iterator i = this->begin(); + i != this->end(); ++i) + { + delete []*i; + } +} bool SystemTools::PutEnv(const char* value) { static kwsysDeletingCharVector localEnvironment;