diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-05 17:17:01 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-05 17:17:01 (GMT) |
commit | 0de79d4b2d8918b0a520728d406a56251dac1fa9 (patch) | |
tree | 8a3e731b6ba81aef3eb785e4f8525d31ef60fe93 | |
parent | fdff8eb300872af8546b738c0ffc4ac704d5feac (diff) | |
download | CMake-0de79d4b2d8918b0a520728d406a56251dac1fa9.zip CMake-0de79d4b2d8918b0a520728d406a56251dac1fa9.tar.gz CMake-0de79d4b2d8918b0a520728d406a56251dac1fa9.tar.bz2 |
ENH: fix warning on borland
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 45c4969..3338820 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<char*> { public: - ~kwsysDeletingCharVector() - { - for(kwsys_stl::vector<char*>::iterator i = this->begin(); - i != this->end(); ++i) - { - delete []*i; - } - } + ~kwsysDeletingCharVector(); }; - +kwsysDeletingCharVector::~kwsysDeletingCharVector() +{ + for(kwsys_stl::vector<char*>::iterator i = this->begin(); + i != this->end(); ++i) + { + delete []*i; + } +} bool SystemTools::PutEnv(const char* value) { static kwsysDeletingCharVector localEnvironment; |