summaryrefslogtreecommitdiff
path: root/src/cppunit/ProtectorChain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/ProtectorChain.cpp')
-rw-r--r--src/cppunit/ProtectorChain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cppunit/ProtectorChain.cpp b/src/cppunit/ProtectorChain.cpp
index f4c8bed..8cede2b 100644
--- a/src/cppunit/ProtectorChain.cpp
+++ b/src/cppunit/ProtectorChain.cpp
@@ -63,7 +63,7 @@ ProtectorChain::protect( const Functor &functor,
return functor();
Functors functors;
- for ( int index = 0; index < m_protectors.size(); ++index )
+ for ( int index = m_protectors.size()-1; index >= 0; --index )
{
const Functor &protectedFunctor =
functors.empty() ? functor : *functors.back();