diff options
author | lloyd <[email protected]> | 2009-11-16 17:07:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-16 17:07:38 +0000 |
commit | 22a47e97f459337ff8c2b9fdcf68cb1514b19b34 (patch) | |
tree | 3eacf8d877eb0f3c6bc19f0b1995bedea224591c /src/algo_factory/algo_factory.cpp | |
parent | fc5fadb281c509855a0ae20ecc70bfe9d681a1af (diff) |
Use auto for long iterator names, etc.
It will be nice to convert to the range-based for loop once that's available.
Diffstat (limited to 'src/algo_factory/algo_factory.cpp')
-rw-r--r-- | src/algo_factory/algo_factory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp index 192d5ecdd..0b8422bcb 100644 --- a/src/algo_factory/algo_factory.cpp +++ b/src/algo_factory/algo_factory.cpp @@ -99,7 +99,8 @@ Algorithm_Factory::Algorithm_Factory(const std::vector<Engine*>& engines_in) */ Algorithm_Factory::~Algorithm_Factory() { - std::for_each(engines.begin(), engines.end(), del_fun<Engine>()); + for(auto i = engines.begin(); i != engines.end(); ++i) + delete *i; delete block_cipher_cache; delete stream_cipher_cache; |