[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/InSample DummyInSampleChooser.cs,
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-03-30 15:46:17
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/InSample In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6870/b4_Business/a2_Strategies/InSample Modified Files: DummyInSampleChooser.cs Log Message: The code has been patched: in the previous revision, it returned a dummy TestingPositions array, with a single null element. The null element gave some troubles to the callers, thus now the TestingPositions array returns a single NON null TestingPositions element Index: DummyInSampleChooser.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/InSample/DummyInSampleChooser.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DummyInSampleChooser.cs 6 Mar 2008 19:56:37 -0000 1.1 --- DummyInSampleChooser.cs 30 Mar 2008 15:46:12 -0000 1.2 *************** *** 58,62 **** if ( this.NewProgress != null ) this.NewProgress( this , new NewProgressEventArgs( 1 , 1 ) ); ! return new TestingPositions[ 1 ]; } } --- 58,67 ---- if ( this.NewProgress != null ) this.NewProgress( this , new NewProgressEventArgs( 1 , 1 ) ); ! TestingPositions[] dummyTestingPositionsArray = ! new TestingPositions[ 1 ]; ! TestingPositions dummyTestingPositions = ! new TestingPositions(); ! dummyTestingPositionsArray[ 0 ] = dummyTestingPositions; ! return dummyTestingPositionsArray; } } |