Update of /cvsroot/mockpp/mockpp/mockpp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26496/mockpp
Modified Files:
VisitableMockMethod.cpp VisitableMockMethod.h
Log Message:
reset everything on start
Index: VisitableMockMethod.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/VisitableMockMethod.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- VisitableMockMethod.cpp 13 Nov 2005 11:52:26 -0000 1.5
+++ VisitableMockMethod.cpp 18 Nov 2005 10:20:00 -0000 1.6
@@ -46,6 +46,7 @@
{
MOCKPP_PRE(parent != 0);
MOCKPP_PRE(name.length() != 0);
+ reset();
}
Index: VisitableMockMethod.h
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/VisitableMockMethod.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- VisitableMockMethod.h 18 Nov 2005 08:49:34 -0000 1.20
+++ VisitableMockMethod.h 18 Nov 2005 10:20:00 -0000 1.21
@@ -202,7 +202,9 @@
VisitableMockReturningMethodBase(const String &name, VisitableMockObject *parent)
: VisitableMockMethodBase(name, parent)
, returnValues(getMethodName() + MOCKPP_PCHAR("/returnValues"), this)
- {}
+ {
+ reset();
+ }
/** Sets the default return value.
* This value is returned if there are no throwables available and if there
|