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;