Addressed some static analysis warnings

Based on findings in #957
This commit is contained in:
Martin Hořeňovský committed 2017-07-19 09:50:08 +02:00
1 parent 8ebe94ca2e
commit 7a22bad763
9 files changed
+15 -23

No files matched your search

+2 -2
View File
@@ -61,14 +61,14 @@ namespace Catch {
};
template<typename ContainerT>
inline void deleteAll( ContainerT& container ) {
void deleteAll( ContainerT& container ) {
typename ContainerT::const_iterator it = container.begin();
typename ContainerT::const_iterator itEnd = container.end();
for(; it != itEnd; ++it )
delete *it;
}
template<typename AssociativeContainerT>
inline void deleteAllValues( AssociativeContainerT& container ) {
void deleteAllValues( AssociativeContainerT& container ) {
typename AssociativeContainerT::const_iterator it = container.begin();
typename AssociativeContainerT::const_iterator itEnd = container.end();
for(; it != itEnd; ++it )